[ 
https://issues.apache.org/jira/browse/CAMEL-10304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15486616#comment-15486616
 ] 

Philip Andrew commented on CAMEL-10304:
---------------------------------------

At the moment, in my BundleActivator in the class itself, so when the class is 
instated then it runs, I assume before many other things.

  RuntimeDelegate.setInstance(new 
org.glassfish.jersey.server.internal.RuntimeDelegateImpl())



> Apache Camel Docker component not working in OSGi environment
> -------------------------------------------------------------
>
>                 Key: CAMEL-10304
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10304
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-docker
>    Affects Versions: 2.17.3
>         Environment: Windows
>            Reporter: Philip Andrew
>            Priority: Minor
>
> I can not use camel-docker in the OSGi environment, exception is thrown.
> java.lang.RuntimeException: java.lang.ClassNotFoundException: Provider 
> org.glass fish.jersey.internal.RuntimeDelegateImpl could not be instantiated: 
> java.lang.Il legalStateException: No generator was provided and there is no 
> default generator registered
> If I do the following workaround then it can work
> RuntimeDelegate.setInstance(new 
> org.glassfish.jersey.server.internal.RuntimeDelegateImpl())
> http://stackoverflow.com/questions/39382056/how-to-get-apache-camel-docker-component-to-work-in-osgi-or-jersey-does-not-wo



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to