4 Replies Latest reply on Jul 2, 2013 8:56 AM by jelramzy_jelramzy

    Unresolved constraint in bundle org.apache.camel.camel-example-cxf-osgi

    jelramzy_jelramzy

      Hi there,

       

      i was trying to test the Camel cxf example provided in the apache camel 2.11.0 distribution ( that i cpmpiled with success)  , so i followed the suggested deployment command to try to deploy the project as an OSGI bundle under Fuse Enterprise 7.1  :

       

      osgi:install -s mvn:org.apache.camel/camel-example-cxf-osgi/2.11.0

       

      Unfortunately, i am facing a blocking exception whose  stacktrace is the following:

       

      Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.camel.camel-example-cxf-osgi : Unable to resolve 366.0: missing requirement osgi.wiring.package; (&(osgi.wiring.package=org.apache.camel)(version>=2.11.0)(!(version>=3.0.0)))

           at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4054)[org.apache.felix.framework-4.0.3.fuse-71-047.jar:]

           at org.apache.felix.framework.Felix.startBundle(Felix.java:1959)[org.apache.felix.framework-4.0.3.fuse-71-047.jar:]

           at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:947)[org.apache.felix.framework-4.0.3.fuse-71-047.jar:]

           at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:934)[org.apache.felix.framework-4.0.3.fuse-71-047.jar:]

           at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:51)[38:org.apache.karaf.shell.osgi:2.3.0.fuse-71-047]

           ... 11 more

       

      Does anyone see where is the problem exactly? is it due to the camel version problem?

       

      PS: i am attachning the camel-example-cxf-osgi pom file as provided.