Open madhugarimilla opened 8 years ago
You need to call configuration.update(properties) instead of configuration.update().
@BryanHunt I have the same problem. I also tried update(properties).
com.eclipsesource.jaxrs.publisher.internal.Configuration.updated(Dictionary)
is called with a null Dictionary
. I have Eclipse Neon as target platform.
Any other hints? Thanks.
If configuration.update(properties) is not working, then it's time to bust out the debugger.
I was trying to provide the root like this inside start method of Activator class. Did i miss something? my services are still available under /services.
ServiceReference<?> reference = context.getServiceReference(ConfigurationAdmin.class.getName() ); ConfigurationAdmin configAdmin = ( ConfigurationAdmin )context.getService( reference ); Configuration configuration = configAdmin.getConfiguration("com.eclipsesource.jaxrs.connector", null ); Dictionary<String, Object> properties = configuration.getProperties(); properties.put( "root", "/rest/v1" ); configuration.update(); context.ungetService( reference );