The problem is that CXF the 3.0.x features file (which is pulled in via Camel 2.15.2) doesn’t support Karaf 4. CXF only supports Karaf 4 starting with CXF 3.1.
Thus, when the Karaf resolver is trying to resolve the camel-cxf feature file, it has a problem with the jetty 8 feature as CXF 3.0.x needs Jetty 8, not the Jetty 9 that Karaf 4 provides. You can “work around” this by doing: feature:install camel-core camel-spring install -s mvn:org.apache.camel/camel-cxf-transport/2.15.2 install -s mvn:org.apache.camel/camel-cxf/2.15.2 which should work fine. If you look at the features file for camel-cxf, it’s really the same as the above but wouldn’t attempt to look at the 3.0.x versions of CXF. That said, this MAY be a bug in Karaf’s resolver. The Camel feature file specifies a version range of [2.7,4.0) for CXF and CXF 3.1.1 would already be installed and resolved so I have no idea why it’s even looking at the 3.0.5 features. Dan > On Aug 10, 2015, at 3:52 PM, bocamel <johnz...@gmail.com> wrote: > > Just a heads up. Tried the latest Karaf 4.0.0. Cannot load camel-cxf > feature (Camel 2.15.2/CXF 3.1.1). Below is the error - looks like someone > needs to bump up Jetty dependency. > > > karaf@root()> feature:repo-add cxf 3.1.1 > Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/3.1.1/xml/features > karaf@root()> feature:install cxf cxf-rt-security > karaf@root()> feature:repo-add camel 2.15.2 > Adding feature url > mvn:org.apache.camel.karaf/apache-camel/2.15.2/xml/features > karaf@root()> feature:install camel-core camel-spring camel-cxf > Error executing command: Unable to resolve root: missing requirement [root] > osgi > .identity; osgi.identity=jetty; type=karaf.feature; version="[7.0.0,9.0.0)" > karaf@root()> > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-CXF-cannot-be-loaded-to-Karaf-4-0-0-tp5770537.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Daniel Kulp dk...@apache.org - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com