Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19339

karaf - ConnectionFactory not found when use camel-activemq

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.20.4
    • 3.20.5, 3.21.0
    • karaf
    • None
    • Java 11

      Karaf 4.3.3

      Camel 3.20.4

    • Unknown

    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

      Attachments

        1. TestCamel.zip
          12 kB
          Kiryanov Vlad

        Activity

          People

            davsclaus Claus Ibsen
            vladk Kiryanov Vlad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: