You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2012/12/17 18:36:19 UTC
[jira] [Resolved] (CXF-4706) javax.xml.bind.UnmarshalException at
server startup
[ https://issues.apache.org/jira/browse/CXF-4706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-4706.
------------------------------
Resolution: Fixed
Fix Version/s: 2.7.2
Assignee: Daniel Kulp
Something on the network is probing the services (via WS-Discovery), but using the old old WS-Discovery namespaces instead of the version CXF supports. I've just updated the CXF code to try mapping those namespaces into the newer versions. Can you try with tomorrows 2.7.2-SNAPSHOT and see if the error goes away (or a new error is raised)? That would be a big help.
As another "fix", you can remove the cxf-services-ws-discovery modules from your application and the problem should go away as CXF would no longer support WS-Discovery at all.
> javax.xml.bind.UnmarshalException at server startup
> ---------------------------------------------------
>
> Key: CXF-4706
> URL: https://issues.apache.org/jira/browse/CXF-4706
> Project: CXF
> Issue Type: Bug
> Components: Bus
> Affects Versions: 2.7.1
> Environment: Tomcat 7.0.30 /JDK 1.6.0_26 / Windows 7/Mac OS Mountain Lion
> Reporter: Kevin Chien
> Assignee: Daniel Kulp
> Fix For: 2.7.2
>
>
> CXF 2.7.1 keeps broadcasting the following exception message after a service WAR is deployed to Tomcat. This issue even happens to the simplest service returning "echo message":
> javax.xml.bind.UnmarshalException: unexpected element (uri:"http://schemas.xmlsoap.org/ws/2005/04/discovery", local:"Probe"). Expected elements are <{http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01}AppSequence>,<{http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01}Bye>,<{http://www.w3.org/20
> 05/08/addressing}EndpointReference>,<{http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01}Hello>,<{http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01}MetadataVersion>,<{http://docs.oasis-open.org
> /ws-dd/ns/discovery/2009/01}Probe>,<{http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01}ProbeMatches>,<{http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01}Resolve>,<{http://docs.oasis-open.org/w
> s-dd/ns/discovery/2009/01}ResolveMatches>,<{http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01}Scopes>,<{http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01}Security>,<{http://docs.oasis-open.org
> /ws-dd/ns/discovery/2009/01}Sig>,<{http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01}SupportedMatchingRules>,<{http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01}Types>,<{http://docs.oasis-open
> .org/ws-dd/ns/discovery/2009/01}XAddrs>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira