dev:dynamic-import <camel-example-cxf-osgi (2.10.4) ID> will resolve this issue. It's the missing import of
Apache CXF Runtime Core (116): META-INF.cxf; version=2.6.6 which cause this issue. I will resolve this for Camel 2.10.5 and 2.11.1 and add a note to the know issues. Thanks for reporting! Best, Christian On Tue, Apr 9, 2013 at 1:04 AM, Krzysztof Sobkowiak < krzys.sobkow...@gmail.com> wrote: > ** > > Hi > > > > I'm trying to deploy camel-example-cxf-osgi/2.10.4 on Karaf 2.3.1 or SMX > 4.5.1 using following commands (as described in > http://camel.apache.org/cxf-example-osgi.html) > > > > in Karaf i have to add Camel features first > > features:chooseurl camel 2.10.4 > > > > and next (Karaf or SMX) > > > > > > features:install war > > features:install cxf > > features:install camel-spring > > features:install camel-jaxb > > features:install camel-cxf > > osgi:install -s mvn:org.apache.camel/camel-example-cxf-osgi/2.10.4 > > After installing the sample bundle the spring context fails to start > > [ 176] [Active ] [ ] [Failed ] [ 80] camel-example-cxf-osgi > (2.10.4) > > In the log file I can see following error (full stacktrace attached) > > > > Caused by: java.io.FileNotFoundException: OSGi > resource[classpath:META-INF/cxf/cxf.xml|bnd.id=176|bnd.sym=org.apache.camel.camel-example-cxf-osgi] > cannot be resolved to URL because it does not exist > > > I could successfully install the camel-example-cxf-osgi/2.9.0 > > I thing my problem is caused by > https://issues.apache.org/jira/browse/CAMEL-5441 which removes the > META-INF.cxf from the imports of the example bundle > (https://github.com/apache/camel/commit/73c3d4fd2a306557be8f79b502697fe3cd475695#examples/camel-example-cxf-osgi/pom.xml) > > Was this removal correct? I don't understand why this files should by loaded > by Spring DM and why it is not necessary to import them. > > Could you write me the correct steps for successful installation of the > sample? > > > Best regards > > Krzysztof > > > >