As you know The stax and jaxws-api are part of the JDK6. If these package are exported from JRE, we may face some trouble if we install the package bundle at the same time. That is why we remove there bundle from camel-core feature in CAMEL-4671[1]
To load these API bundle or not depends on whether OSGi container export these packages or not by default, It is not easy to support these two use case in a single apache-camel features.xml, So I added xml-specs-api feature in the apache-camel features.xml.
We could let karaf or pax-exam to load the xml-specs-api feature before loading other camel features in case the OSGi container doesn't export these packages. And if the OSGi container already exports these packages, we could skip the xml-specs-api feature.
[1]https://issues.apache.org/jira/browse/CAMEL-4671 On 12/22/11 2:20 AM, Christian Müller wrote:
I also have problems to install camel-hdfs: Christian-Muellers-MacBook-Pro:bin cmueller$ ./karaf clean karaf@root> features:addurl mvn:org.apache.camel.karaf/apache-camel/2.9.0/xml/features karaf@root> features:install camel-hdfs Error executing command: Could not start bundle mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxws-api-2.2/1.9.0 in feature(s) camel-hdfs-2.9.0, cxf-specs-2.5.1, camel-soap-2.9.0: Unresolved constraint in bundle org.apache.servicemix.specs.jaxws-api-2.2 [88]: Unable to resolve 88.0: missing requirement [88.0] package; (&(package=javax.xml.bind)(version>=2.2.0))
-- Willem ---------------------------------- FuseSource Web: http://www.fusesource.com Blog: http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang Weibo: willemjiang