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

[OSGi] The camel-kafka feature can't be installed into karaf container completely

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.16.2
    • 2.16.3
    • karaf
    • None
    • Java 8

    • Novice

    Description

      When trying to install the camel-kafka feature into karaf OSGi container, the com.101tec/zkclient/0.5 bundle can't be installed dur to it's wrong Import-Package section in the MANIFEST.

      Caused by: java.lang.Exception: Unable to start bundle wrap:mvn:com.101tec/zkclient/0.5
      	at org.apache.karaf.bundle.command.Install.execute(Install.java:98)[24:org.apache.karaf.bundle.core:4.0.4]
      	... 11 more
      Caused by: org.osgi.framework.BundleException: Unable to resolve com.101tec.zkclient [65](R 65.0): missing requirement [com.101tec.zkclient [65](R 65.0)] osgi.wiring.package; (osgi.wiring.package=org.apache.jute) Unresolved requirements: [[com.101tec.zkclient [65](R 65.0)] osgi.wiring.package; (osgi.wiring.package=org.apache.jute)]
      	at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4111)[org.apache.felix.framework-5.4.0.jar:]
      	at org.apache.felix.framework.Felix.startBundle(Felix.java:2117)[org.apache.felix.framework-5.4.0.jar:]
      	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)[org.apache.felix.framework-5.4.0.jar:]
      	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)[org.apache.felix.framework-5.4.0.jar:]
      	at org.apache.karaf.bundle.command.Install.execute(Install.java:96)[24:org.apache.karaf.bundle.core:4.0.4]
      	... 11 more
      

      The package name: org.apache.jute and org.apache.zookeeper.proto should be removed from Import-Package, seems it's got fixed from zkclient project version 0.8.
      https://github.com/sgroschupf/zkclient/commit/bbe5db97991ff10c2ba90338bc50a98eb24361fb

      so this issue can be fixed by upgrade zkclient from 0.5 to 0.8 (as long as the 0.8 version is available from maven centre)

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            xldai Xilai Dai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: