Details
Description
Hello.
I use Apache Karaf 4.4.3 as an osgi container. When I try to use camel-activemq 3.20.4 I get an error while deploy bundle:
Caused by: java.lang.NoClassDefFoundError: javax/jms/ConnectionFactory
at org.apache.camel.component.activemq.ActiveMQComponent.createConfiguration(ActiveMQComponent.java:260) ~[?:?]
at org.apache.camel.component.jms.JmsComponent.<init>(JmsComponent.java:76) ~[?:?]
at org.apache.camel.component.activemq.ActiveMQComponent.<init>(ActiveMQComponent.java:48) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
at java.lang.reflect.Constructor.newInstance(Constructor.java:490) ~[?:?]
at org.apache.aries.blueprint.utils.ReflectionUtils.newInstance(ReflectionUtils.java:369) ~[?:?]
at org.apache.aries.blueprint.container.BeanRecipe.newInstance(BeanRecipe.java:839) ~[?:?]
at org.apache.aries.blueprint.container.BeanRecipe.getInstanceFromType(BeanRecipe.java:350) ~[?:?]
... 28 more
Caused by: java.lang.ClassNotFoundException: javax.jms.ConnectionFactory not found by org.apache.camel.camel-activemq [121]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1591) ~[?:?]
at org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79) ~[?:?]
In Karaf I use commands:
repo-add camel 3.20.4
feature:install camel
feature:install camel-activemq
My code and full log is in an attachment
On version 3.18.6 this code works