cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krzysztof Sobkowiak (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-5894) java.lang.NoSuchFieldError: com/sun/xml/bind/v2/model/nav/Navigator.REFLECTION
Date Thu, 11 Dec 2014 22:47:14 GMT

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

Krzysztof Sobkowiak commented on CXF-5894:
------------------------------------------

We have similar problem with CXF 3.0.2. Eclipse/InteliJ and maven dependency plugin show the
correct version {{2.2.10-}} but after building the war file it contains the wrong version
{{2.1.14}}. I have found it is caused by {{flatten-maven-plugin}} enabled. Disabling it fixes
the problem. You can find more details here https://github.com/oasp/oasp4j/issues/140.

> java.lang.NoSuchFieldError: com/sun/xml/bind/v2/model/nav/Navigator.REFLECTION
> ------------------------------------------------------------------------------
>
>                 Key: CXF-5894
>                 URL: https://issues.apache.org/jira/browse/CXF-5894
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 3.0.1
>            Reporter: David J. M. Karlsen
>            Assignee: Daniel Kulp
>             Fix For: Invalid
>
>
> I get java.lang.NoSuchFieldError: com/sun/xml/bind/v2/model/nav/Navigator.REFLECTION
when upgrading from 3.0.0 to 3.0.1.
> Full stacktrade:
> {noformat}
> Caused by: java.lang.NoSuchFieldError: com/sun/xml/bind/v2/model/nav/Navigator.REFLECTION
>         at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.<init>(RuntimeModelBuilder.java:93)
~[jaxb-impl-2.2.7.jar:2.2.7]
>         at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:455)
~[jaxb-impl-2.2.7.jar:2.2.7]
>         at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:303)
~[jaxb-impl-2.2.7.jar:2.2.7]
>         at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:142)
~[jaxb-impl-2.2.7.jar:2.2.7]
>         at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1174)
~[jaxb-impl-2.2.7.jar:2.2.7]
>         at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:162)
~[jaxb-impl-2.2.7.jar:2.2.7]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0]
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:76)
~[na:1.7.0]
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[na:1.7.0]
>         at java.lang.reflect.Method.invoke(Method.java:607) ~[na:2.6 (06-17-2013)]
>         at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:259) ~[na:1.7.0]
>         at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:246) ~[na:1.7.0]
>         at javax.xml.bind.ContextFinder.find(ContextFinder.java:443) ~[na:1.7.0]
>         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:648) ~[na:1.7.0]
>         at org.apache.cxf.common.jaxb.JAXBContextCache$2.run(JAXBContextCache.java:347)
~[cxf-core-3.0.1.jar:3.0.1]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message