ServiceMix 4
  1. ServiceMix 4
  2. SMX4-760

JAXB API and implementation version mismatch in Camel features descriptor

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.3.0
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Activity

        Gert Vanthienen created issue -
        Gert Vanthienen made changes -
        Field Original Value New Value
        Assignee Gert Vanthienen [ gertvanthienen ]
        Show
        Gert Vanthienen added a comment - Fixed in http://svn.apache.org/viewvc?view=revision&revision=1071399
        Gert Vanthienen made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Jean-Baptiste Onofré made changes -
        Fix Version/s 4.3.0 [ 12315741 ]
        Fix Version/s 4.4.0 [ 12315742 ]

          People

          • Assignee:
            Gert Vanthienen
            Reporter:
            Gert Vanthienen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development