You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2023/05/18 21:10:00 UTC
[jira] [Resolved] (CAMEL-19339) karaf - ConnectionFactory not found when use camel-activemq
[ https://issues.apache.org/jira/browse/CAMEL-19339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-19339.
---------------------------------
Assignee: Claus Ibsen
Resolution: Fixed
> 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
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 3.20.5, 3.21.0
>
> 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)