hstaudacher / osgi-jax-rs-connector

An OSGi - JAX-RS 2.0 Connector, software repository available on the link below
http://hstaudacher.github.io/osgi-jax-rs-connector
Other
191 stars 98 forks source link

context.getServiceReference( ConfigurationAdmin.class.getName() ) always returns null inside my Activator #156

Closed madhugarimilla closed 8 years ago

madhugarimilla commented 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 );

madhugarimilla commented 8 years ago

Adding org.eclipse.equiinox.cm bundle to the run time launch configuration resolved the issue.