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

Stax2 version conflict

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.6
    • 3.2.7
    • Core
    • None
    • Unknown

    Description

      There is a version conflict in transitive dependencies of cxf regarding the stax2 api.

      cxf-rt-ws-policy uses the org.apache.neethi library, which is dependant on a version 3.1.1 of stax2 api, however cxf-core and its dependency com.fasterxml.woodstox uses a version 4.1 of stax2 api. Unfortunately, these versions are not compatible - java.lang.NoSuchMethodError: org.codehaus.stax2.ri.EmptyIterator.getInstance()Lorg/codehaus/stax2/ri/EmptyIterator;

      Dependency resolution and the conflicting part on the last line.

      +--- org.apache.cxf:cxf-rt-frontend-jaxws:3.2.6
      | +--- xml-resolver:xml-resolver:1.2
      | +--- org.ow2.asm:asm:5.2
      | +--- org.apache.cxf:cxf-core:3.2.6 (*)
      | +--- org.apache.cxf:cxf-rt-bindings-soap:3.2.6
      | | +--- org.apache.cxf:cxf-core:3.2.6 (*)
      | | +--- org.apache.cxf:cxf-rt-wsdl:3.2.6
      | | | +--- org.apache.cxf:cxf-core:3.2.6 (*)
      | | | +--- wsdl4j:wsdl4j:1.6.3
      | | | \--- org.ow2.asm:asm:5.2
      | | \--- org.apache.cxf:cxf-rt-databinding-jaxb:3.2.6
      | | +--- org.apache.cxf:cxf-core:3.2.6 (*)
      | | \--- org.apache.cxf:cxf-rt-wsdl:3.2.6 (*)
      | +--- org.apache.cxf:cxf-rt-bindings-xml:3.2.6
      | | \--- org.apache.cxf:cxf-core:3.2.6 (*)
      | +--- org.apache.cxf:cxf-rt-frontend-simple:3.2.6
      | | +--- org.apache.cxf:cxf-core:3.2.6 (*)
      | | +--- org.apache.cxf:cxf-rt-bindings-soap:3.2.6 (*)
      | | \--- org.apache.cxf:cxf-rt-wsdl:3.2.6 (*)
      | \--- org.apache.cxf:cxf-rt-ws-addr:3.2.6
      | +--- org.apache.cxf:cxf-core:3.2.6 (*)
      | +--- org.apache.cxf:cxf-rt-bindings-soap:3.2.6 (*)
      | \--- org.apache.cxf:cxf-rt-ws-policy:3.2.6
      | +--- wsdl4j:wsdl4j:1.6.3
      | +--- org.apache.cxf:cxf-core:3.2.6 (*)
      | \--- org.apache.neethi:neethi:3.1.1
      | \--- org.codehaus.woodstox:woodstox-core-asl:4.4.1
      | +--- javax.xml.stream:stax-api:1.0-2
      | \--- org.codehaus.woodstox:stax2-api:3.1.4 -> 4.1
      

      Attachments

        Activity

          People

            coheigea Colm O hEigeartaigh
            sabomichal Michal Sabo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: