Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-4887

"camel-example-cxf-osgi" can't be started in Fuse 6.2.1

XMLWordPrintable

    • % %
    • Hide

      1. go to Fuse_HOME/extras/apache-camel-2.15.1.redhat-621084/examples/camel-example-cxf-osgi and build it.
      2. start fuse with command "./karaf start"
      3. follows instructional to install and start it:
      ~~~
      JBossFuse:karaf@root> features:addUrl mvn:org.apache.camel.karaf/apache-camel/2.15.1.redhat-621084/xml/features
      JBossFuse:karaf@root> features:install war
      JBossFuse:karaf@root> features:install cxf
      JBossFuse:karaf@root> features:install camel-spring
      JBossFuse:karaf@root> features:install camel-jaxb
      JBossFuse:karaf@root> features:install camel-cxf
      JBossFuse:karaf@root> osgi:install -s mvn:org.apache.camel/camel-example-cxf-osgi/2.15.1.redhat-621084
      ~~~
      4. error shows:
      ~~~
      Bundle ID: 296
      Error executing command: Error installing bundles:
      Unable to start bundle mvn:org.apache.camel/camel-example-cxf-osgi/2.15.1.redhat-621084: Unresolved constraint in bundle org.apache.camel.camel-example-cxf-osgi [296]: Unable to resolve 296.0: missing requirement [296.0] osgi.wiring.package; (osgi.wiring.package=org.apache.cxf.transports.http)

      fuse.log:
      13:25:34,663 | ERROR | l Console Thread | Console | 38 - org.apache.karaf.shell.console - 2.4.0.redhat-621084 | Exception caught while executing command
      org.apache.karaf.shell.console.MultiException: Error installing bundles:
      Unable to start bundle mvn:org.apache.camel/camel-example-cxf-osgi/2.15.1.redhat-621084: Unresolved constraint in bundle org.apache.camel.camel-example-cxf-osgi [296]: Unable to resolve 296.0: missing requirement [296.0] osgi.wiring.package; (osgi.wiring.package=org.apache.cxf.transports.http)
      at org.apache.karaf.shell.console.MultiException.throwIf(MultiException.java:91)
      at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:70)
      at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)
      at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
      at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_79]
      at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_79]
      at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)[19:org.apache.aries.proxy.impl:1.0.4]
      at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)[19:org.apache.aries.proxy.impl:1.0.4]
      at org.apache.karaf.shell.console.commands.$BlueprintCommand52302903.execute(Unknown Source)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]
      at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]
      at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]
      at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]
      at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]
      at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]
      at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]
      at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]
      at org.apache.karaf.shell.console.jline.Console.run(Console.java:197)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]
      at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:79)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]
      Caused by: java.lang.Exception: Unable to start bundle mvn:org.apache.camel/camel-example-cxf-osgi/2.15.1.redhat-621084: Unresolved constraint in bundle org.apache.camel.camel-example-cxf-osgi [296]: Unable to resolve 296.0: missing requirement [296.0] osgi.wiring.package; (osgi.wiring.package=org.apache.cxf.transports.http)
      at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:53)
      ... 17 more
      Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.camel.camel-example-cxf-osgi [296]: Unable to resolve 296.0: missing requirement [296.0] osgi.wiring.package; (osgi.wiring.package=org.apache.cxf.transports.http)
      at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
      at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:976)
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:963)
      at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:51)
      ... 17 more
      ~~~
      5. command shows:
      ~~~
      JBossFuse:karaf@root> packages:exports |grep org.apache.cxf.transports.http
      96 org.apache.cxf.transports.http.configuration; version=3.0.4.redhat-621084
      205 org.apache.cxf.transports.http_jetty.configuration; version=3.0.4.redhat-621084
      ~~~

      Show
      1. go to Fuse_HOME/extras/apache-camel-2.15.1.redhat-621084/examples/camel-example-cxf-osgi and build it. 2. start fuse with command "./karaf start" 3. follows instructional to install and start it: ~~~ JBossFuse:karaf@root> features:addUrl mvn:org.apache.camel.karaf/apache-camel/2.15.1.redhat-621084/xml/features JBossFuse:karaf@root> features:install war JBossFuse:karaf@root> features:install cxf JBossFuse:karaf@root> features:install camel-spring JBossFuse:karaf@root> features:install camel-jaxb JBossFuse:karaf@root> features:install camel-cxf JBossFuse:karaf@root> osgi:install -s mvn:org.apache.camel/camel-example-cxf-osgi/2.15.1.redhat-621084 ~~~ 4. error shows: ~~~ Bundle ID: 296 Error executing command: Error installing bundles: Unable to start bundle mvn:org.apache.camel/camel-example-cxf-osgi/2.15.1.redhat-621084: Unresolved constraint in bundle org.apache.camel.camel-example-cxf-osgi [296] : Unable to resolve 296.0: missing requirement [296.0] osgi.wiring.package; (osgi.wiring.package=org.apache.cxf.transports.http) fuse.log: 13:25:34,663 | ERROR | l Console Thread | Console | 38 - org.apache.karaf.shell.console - 2.4.0.redhat-621084 | Exception caught while executing command org.apache.karaf.shell.console.MultiException: Error installing bundles: Unable to start bundle mvn:org.apache.camel/camel-example-cxf-osgi/2.15.1.redhat-621084: Unresolved constraint in bundle org.apache.camel.camel-example-cxf-osgi [296] : Unable to resolve 296.0: missing requirement [296.0] osgi.wiring.package; (osgi.wiring.package=org.apache.cxf.transports.http) at org.apache.karaf.shell.console.MultiException.throwIf(MultiException.java:91) at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:70) at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38) at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35) at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.7.0_79] at java.lang.reflect.Method.invoke(Method.java:606) [:1.7.0_79] at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54) [19:org.apache.aries.proxy.impl:1.0.4] at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119) [19:org.apache.aries.proxy.impl:1.0.4] at org.apache.karaf.shell.console.commands.$BlueprintCommand52302903.execute(Unknown Source) [38:org.apache.karaf.shell.console:2.4.0.redhat-621084] at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78) [38:org.apache.karaf.shell.console:2.4.0.redhat-621084] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477) [38:org.apache.karaf.shell.console:2.4.0.redhat-621084] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403) [38:org.apache.karaf.shell.console:2.4.0.redhat-621084] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108) [38:org.apache.karaf.shell.console:2.4.0.redhat-621084] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183) [38:org.apache.karaf.shell.console:2.4.0.redhat-621084] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120) [38:org.apache.karaf.shell.console:2.4.0.redhat-621084] at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92) [38:org.apache.karaf.shell.console:2.4.0.redhat-621084] at org.apache.karaf.shell.console.jline.Console.run(Console.java:197) [38:org.apache.karaf.shell.console:2.4.0.redhat-621084] at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:79) [38:org.apache.karaf.shell.console:2.4.0.redhat-621084] Caused by: java.lang.Exception: Unable to start bundle mvn:org.apache.camel/camel-example-cxf-osgi/2.15.1.redhat-621084: Unresolved constraint in bundle org.apache.camel.camel-example-cxf-osgi [296] : Unable to resolve 296.0: missing requirement [296.0] osgi.wiring.package; (osgi.wiring.package=org.apache.cxf.transports.http) at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:53) ... 17 more Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.camel.camel-example-cxf-osgi [296] : Unable to resolve 296.0: missing requirement [296.0] osgi.wiring.package; (osgi.wiring.package=org.apache.cxf.transports.http) at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002) at org.apache.felix.framework.Felix.startBundle(Felix.java:2045) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:976) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:963) at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:51) ... 17 more ~~~ 5. command shows: ~~~ JBossFuse:karaf@root> packages:exports |grep org.apache.cxf.transports.http 96 org.apache.cxf.transports.http.configuration; version=3.0.4.redhat-621084 205 org.apache.cxf.transports.http_jetty.configuration; version=3.0.4.redhat-621084 ~~~
    • 6.3 Sprint 2 (1-Feb - 26-Feb)

      Follow the instruction of "Fuse_HOME/extras/apache-camel-2.15.1.redhat-621084/examples/camel-example-cxf-osgi", "camel-example-cxf-osgi" can't be started with below errors:
      ~~~
      Error executing command: Error installing bundles:
      Unable to start bundle mvn:org.apache.camel/camel-example-cxf-osgi/2.15.1.redhat-621084: Unresolved constraint in bundle org.apache.camel.camel-example-cxf-osgi [296]: Unable to resolve 296.0: missing requirement [296.0] osgi.wiring.package; (osgi.wiring.package=org.apache.cxf.transports.http)
      ~~~

      Command shows:
      ~~~
      JBossFuse:karaf@root> packages:exports |grep org.apache.cxf.transports.http
      96 org.apache.cxf.transports.http.configuration; version=3.0.4.redhat-621084
      205 org.apache.cxf.transports.http_jetty.configuration; version=3.0.4.redhat-621084
      ~~~

            dbokde Dhiraj Bokde
            zhangxu1324_jira xu zhang (Inactive)
            Tomas Plevko Tomas Plevko
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: