jbosscxfjboss7.xjboss6.xsaxparser

How to resolve unmarshalling error after JBOSS EAP server migration from 6.4 to 7.4.3?


I am trying to migrate my application server (JBOSS EAP) from 6.4 to 7.4.3. But, after migration I am getting the below error while hitting my webservices.

Unwinding now: org.apache.cxf.interceptor.Fault: Unmarshalling error: unexpected element (uri: ....) Caused by : com.sun.istack.SAXParseException2; line number: 0; columnNumber: 0; unexpected element (uri:....)

The same request was working absolutely fine in JBOSS EAP 6.4. But it is not working now after migration. I want to solve this without touching the codebase (means from server side - server config or server VM arguments etc.).


Solution

  • Can you try the following system property?

    -Dcom.sun.xml.bind.backupWithParentNamespace=true