camel-cxf feature doesn't work on the JDK 1.6.
We use the jre.properties from ServiceMix in the OSGi integration test.
BTW, I just did a quick test of the Apache Camel feature with Karaf 2.2.5 by using the etc/jre.properties.cxf directly.
All the bundles are installed without any issue.

On Wed Dec 28 14:31:37 2011, Jean-Baptiste Onofré wrote:
Hi Christian,

you have to use the etc/jre.properties.cxf packaged with Karaf 2.2.5.

The default jre.properties doesn't hide JRE packages which are overrided by CXF.

Regards
JB

On 12/27/2011 09:54 PM, Christian Müller wrote:
It doesn't look like we could solve the entire problem. With the actual
version on trunk (revision 1224915) I cannot install camel-cxf in Karaf
2.2.5. I opened a new JIRA [1]. May be one of the OSGI experts could have a
look on it:

Christian-Muellers-MacBook-Pro:bin cmueller$
/Applications/apache-karaf-2.2.5/bin/karaf clean
__ __ ____
/ //_/____ __________ _/ __/
/ ,< / __ `/ ___/ __ `/ /_
/ /| |/ /_/ / / / /_/ / __/
/_/ |_|\__,_/_/ \__,_/_/

Apache Karaf (2.2.5)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or 'osgi:shutdown' to shutdown Karaf.

karaf@root> features:addurl
mvn:org.apache.camel.karaf/apache-camel/2.9-SNAPSHOT/xml/features
karaf@root> features:install camel-cxf
2011-12-27 21:39:05.855:INFO:oejs.Server:jetty-7.5.4.v20111024
2011-12-27 21:39:05.877:INFO:oejs.AbstractConnector:Started
SelectChannelConnector@0.0.0.0:8181 STARTING
2011-12-27 21:39:06.061:INFO:oejsh.ContextHandler:started
HttpServiceContext{httpContext=DefaultHttpContext{bundle=org.apache.karaf.deployer.features
[34]}}
2011-12-27 21:39:07.441:INFO:oejsh.ContextHandler:stopped
HttpServiceContext{httpContext=DefaultHttpContext{bundle=org.apache.karaf.deployer.features
[34]}}
Error executing command: Could not start bundle
mvn:org.apache.cxf/cxf-bundle/2.5.1 in feature(s) cxf-2.5.1: Unable to
resolve module org.apache.cxf.bundle [136.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 [65.0] via two dependency chains.

Chain 1:
org.apache.cxf.bundle [136.0]
import:
(&(package=javax.xml.bind.attachment)(version>=0.0.0)(!(version>=3.0.0)))
|
export: package=javax.xml.bind.attachment
org.apache.felix.framework [0]

Chain 2:
org.apache.cxf.bundle [136.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 [95.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 [65.0]

[1] https://issues.apache.org/jira/browse/CAMEL-4831

Best,
Christian





--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
        http://jnn.javaeye.com (Chinese)
Twitter: willemjiang Weibo: willemjiang

Reply via email to