The README.txt needs updating. You need to edit the jre.properties and comment out a bunch of the javax.* things that are provided by the bundles. That would include javax.xml.bind*, javax.jws*, javax.xml.soap*, javax.xml.ws*, I think javax.mail, javax.activation.
Dan On Sunday, October 30, 2011 7:10:21 PM Glen Mazza wrote: > Hello, I'm trying to run the Camel 2.8.2 sample "camel-example-cxf-osgi" > on Apache Karaf 2.2.4. Following these instructions: > https://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-cxf-osgi > /README.txt, I'm able to run the first four of these five commands with no > problem: > > features:addUrl mvn:org.apache.camel.karaf/apache-camel/2.8.2/xml/features > features:install war > features:install camel-spring > features:install camel-jaxb > features:install camel-cxf > > The last command above, however, reports this error: > > karaf@root> features:install camel-cxf > Error executing command: Could not start bundle > mvn:org.apache.camel/camel-cxf-transport/2.8.2 in feature(s) > camel-cxf-2.8.2: Unable to resolve module org.apache.cxf.bundle [137.0] > because it is exposed to package 'javax.xml.bind.attachment' from > org.apache.felix.framework [0] and > org.apache.servicemix.specs.jaxb-api-2.2 [53.0] via two dependency chains. > > Chain 1: > org.apache.cxf.bundle [137.0] > import: (package=javax.xml.bind.attachment) > > export: package=javax.xml.bind.attachment > org.apache.felix.framework [0] > > Chain 2: > org.apache.cxf.bundle [137.0] > import: (package=com.sun.tools.xjc.reader.xmlschema.parser) > > export: package=com.sun.tools.xjc.reader.xmlschema.parser; > uses:=javax.xml.bind > org.apache.servicemix.bundles.jaxb-xjc [58.0] > import: (&(package=javax.xml.bind)(version>=2.2.0)(!(version>=3.0.0))) > > export: package=javax.xml.bind; uses:=javax.xml.bind.attachment > export: package=javax.xml.bind.attachment > org.apache.servicemix.specs.jaxb-api-2.2 [53.0] > > Any idea what the solution would be? > > Thanks, > Glen -- Daniel Kulp dk...@apache.org http://dankulp.com/blog Talend - http://www.talend.com