[ 
https://issues.apache.org/jira/browse/CXF-7836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16613378#comment-16613378
 ] 

Vassilis Virvilis commented on CXF-7836:
----------------------------------------

I am getting the same error as the parent but in my case I don't have 
cxf-rt-ws-policy in my dependencies and certainly not neethi.

I depend however cxf-rt-ws-security but I can't tell why woodstox-core-asl-4.1 
is getting included.

I have manually prevent the woodstox-core-asl-4.1 and both server and clients 
are working for me so far.

In my mind the correct fix is not to prevent upgrade but to figure out why 
these two modules (cxf-rt-ws-policy and cxf-rt-ws-security) require the older 
woodstox jar

Thanks

> Stax2 version conflict
> ----------------------
>
>                 Key: CXF-7836
>                 URL: https://issues.apache.org/jira/browse/CXF-7836
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 3.2.6
>            Reporter: Michal Sabo
>            Assignee: Colm O hEigeartaigh
>            Priority: Major
>             Fix For: 3.2.7
>
>
> 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.
> {code:java}
> +--- 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
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to