+ public void start(BundleContext bundleContext) throws Exception {
+ instance = this;
+ this.bc = bundleContext;
+ this.logReaderService = getService(LogReaderService.class);
+ // this.configurationAdmin = getService(ConfigurationAdmin.class);
+
+ try {
+ initSecurity();// must be first
+ initArgeoLogger();
+ initNode();
+ } catch (Exception e) {
+ log.error("## FATAL: CMS activator failed", e);
+ // throw new CmsException("Cannot initialize node", e);
+ }
+ }
+
+ private void initSecurity() {
+ if (System.getProperty(KernelConstants.JAAS_CONFIG_PROP) == null) {
+ URL url = getClass().getClassLoader().getResource(KernelConstants.JAAS_CONFIG);
+ // URL url =
+ // getClass().getClassLoader().getResource(KernelConstants.JAAS_CONFIG_IPA);
+ System.setProperty(KernelConstants.JAAS_CONFIG_PROP, url.toExternalForm());
+ }
+ Configuration.getConfiguration();
+ }
+
+ private void initArgeoLogger() {
+ logger = new NodeLogger(logReaderService);
+ bc.registerService(ArgeoLogger.class, logger, null);
+ }