[
https://issues.apache.org/jira/browse/CAMEL-19339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17724013#comment-17724013
]
Claus Ibsen commented on CAMEL-19339:
-------------------------------------
You may need to install JMS 1.x specs as it may be that karaf only comes with v2
karaf@root()> exports | grep -i javax.jms
javax.jms │ 2.0.0 │ 125 │
org.apache.geronimo.specs.geronimo-jms_2.0_spec
> karaf - ConnectionFactory not found when use camel-activemq
> -----------------------------------------------------------
>
> Key: CAMEL-19339
> URL: https://issues.apache.org/jira/browse/CAMEL-19339
> Project: Camel
> Issue Type: Bug
> Components: karaf
> Affects Versions: 3.20.4
> Environment: Java 11
> Karaf 4.3.3
> Camel 3.20.4
> Reporter: Kiryanov Vlad
> Priority: Minor
> Attachments: TestCamel.zip
>
>
> 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
--
This message was sent by Atlassian Jira
(v8.20.10#820010)