Closed madhugarimilla closed 8 years ago
I was trying to initialize swagger using one of the examples provided in the connector. Inside start() method of my Activator class, when i am trying to get the service reference of ConfigurationAdmin it always returns null.
ServiceReference<?> reference = context.getServiceReference(ConfigurationAdmin.class.getName()); ConfigurationAdmin configAdmin = ( ConfigurationAdmin )context.getService( reference );
Adding org.eclipse.equiinox.cm bundle to the run time launch configuration resolved the issue.
I was trying to initialize swagger using one of the examples provided in the connector. Inside start() method of my Activator class, when i am trying to get the service reference of ConfigurationAdmin it always returns null.
ServiceReference<?> reference = context.getServiceReference(ConfigurationAdmin.class.getName()); ConfigurationAdmin configAdmin = ( ConfigurationAdmin )context.getService( reference );