I followed the instructions for modifying etc/jre.properties (actually, the file already comments out all the lines listed below) - adding the two xerces lines at the end, and tried features:install camel-cxf after installing war and camel from the features list, and I got the following error:
Error executing command: Could not start bundle mvn:org.apache.camel/camel-cxf/2.8-SNAPSHOT in feature(s) camel-cxf-2.8- SNAPSHOT: The bundle "org.apache.camel.camel-cxf_2.8.0.SNAPSHOT [274]" could not be resolved. Reason: Missing Constraint : Import-Package: org.apache.camel; version="[2.8.0,2.9.0)" It seems Karaf is looking for 2.8.0 releases, not the shapshot version. Glenn Silverman Senior Java Developer Office: 657-622-2900 x404 -----Original Message----- From: Jean-Baptiste Onofré [mailto:[email protected]] Sent: Tuesday, May 17, 2011 5:12 AM To: [email protected]; [email protected] Subject: Fwd: Re: Thoughts about Karaf profiles / releases / growing number of dependencies (Re: AW: AW: Problem when starting camel-cxf in karaf) I forward my answer to CXF and Camel users mailing list as it could help other people. Regards JB -------- Original Message -------- Subject: Re: Thoughts about Karaf profiles / releases / growing number of dependencies (Re: AW: AW: Problem when starting camel-cxf in karaf) Date: Tue, 17 May 2011 14:06:51 +0200 From: Jean-Baptiste Onofré <[email protected]> Reply-To: [email protected] To: [email protected] OK guys I got it. Here's the workaround: - I took Karaf 2.2.1 from scratch and uncompress - I changed the etc/jre.properties, in the jre-1.6 section, by: * commenting the following lines: # javax.activation, \ [...] # javax.annotation, \ # javax.annotation.processing, \ [...] # javax.jws, \ # javax.jws.soap, \ [...] #javax.xml.bind, \ #javax.xml.bind.annotation, \ #javax.xml.bind.annotation.adapters, \ #javax.xml.bind.attachment, \ #javax.xml.bind.helpers, \ #javax.xml.bind.util, \ [...] #javax.xml.soap, \ #javax.xml.stream, \ #javax.xml.stream.events, \ #javax.xml.stream.util, \ [...] #javax.xml.ws, \ #javax.xml.ws.handler, \ #javax.xml.ws.handler.soap, \ #javax.xml.ws.http, \ #javax.xml.ws.soap, \ #javax.xml.ws.spi, \ #javax.xml.ws.wsaddressing, \ [...] * adding the following lines at the end: com.sun.org.apache.xerces.internal.dom, \ com.sun.org.apache.xerces.internal.jaxp - After the added the camel features descriptor URL - And installed the camel-cxf feature without problem Regards JB On 05/17/2011 12:53 PM, akuhtz wrote: > Hi JB, > > I've the same problem: > * Start with fresh karaf-2.2.1 (extracted from assembly.zip), > * add the camel features url in the console: features:addurl > mvn:org.apache.camel.karaf/apache-camel/2.8-SNAPSHOT/xml/features > * try to install camel-cxf feature: features:install camel-cxf > > After a while the following is printed in the console: > Error executing command: Could not start bundle > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saaj-imp > l/1.3.2_1 in feature(s) camel-cxf-2.8-SNAPSHOT: Unresolved constraint in > bundle org.apache.servicemix.bundles.saaj-impl > [105]: Unable to resolve 105.0: missing requirement [105.0] package; > (package=com.sun.org.apache.xerces.internal.dom) > > My env: > java version "1.6.0_23" > Java(TM) SE Runtime Environment (build 1.6.0_23-b05) > Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing) > > Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) > Java version: 1.6.0_23 > Java home: C:\Siemens\Java\jdk1.6.0_23\jre > Default locale: de_CH, platform encoding: Cp1252 > OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" > > Regards > Andi > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/Thoughts-about-Karaf-profiles-releases-growing-number-of-dependencies-Re-AW-AW-Problem-when-starting-tp2419227p2951998.html > Sent from the Karaf - Dev mailing list archive at Nabble.com.
