Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6659

CXF 2.7.17 defaults to JAXB 2.1 in Java 8

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.17
    • Fix Version/s: 3.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      JDK 1.8

    • Estimated Complexity:
      Moderate

      Description

      When using CXF 2.7.17 in a maven project with the JDK property set to "1.8", CXF uses the default dependency for JAXB (which is version 2.1), beacuse there is no profile for JDK 1.8 in the CXF parent pom.xml.
      The correct dependency would be JAXB 2.2, so this leads to runtime exceptions.

      The workaround is to exclude the transitive JAXB dependency in your own pom.xml and explicitly depend on JAXB with the right version.

      In CXF 3 the problem is fixed, but the same problem will appear again with JDK 1.9

        Attachments

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              jsteuerwald Jan Steuerwald
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: