-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 4.3.0
-
Fix Version/s: 4.3.0
-
Component/s: None
-
Labels:None
In the Camel features descriptor in ServiceMix 4.3.0, there's a mismatch between the versions for the API and implementation for JAXB. API is using JAXB 2.1, while the implementation is JAXB 2.2.
<feature name='camel-core' version='2.6.0'> <feature version="3.0.5.RELEASE">spring</feature> <bundle>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/1.7.0</bundle> <bundle>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.1/1.7.0</bundle> <bundle>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/1.7.0</bundle> <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.1.1_1</bundle> <bundle>mvn:org.fusesource.commonman/commons-management/1.0</bundle> <bundle>mvn:org.apache.camel/camel-core/2.6.0</bundle> </feature>
This causes exceptions during startup:
org.apache.karaf.features.core - 2.1.3 | Error installing boot features java.lang.Exception: Could not start bundle mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.1.1_1 in feature(s) camel-core-2.6.0, cxf-2.3.2, servicemix-wsn2005-2011.01: Unresolved constraint in bundle org.apache.servicemix.bundles.jaxb-impl [66]: Unable to resolve 66.0: missing requirement [66.0] package; (&(package=javax.xml.bind)(version>=2.2.0)(!(version>=3.0.0)))
Switching the API to mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.1/1.7.0 fixes the issue on my machine.