wood burning stoves*
The moose likes Web Services and the fly likes Exception Unwinding Now in Apache CXF while invoking service. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Exception Unwinding Now in Apache CXF while invoking service." Watch "Exception Unwinding Now in Apache CXF while invoking service." New topic

Exception Unwinding Now in Apache CXF while invoking service.

Bennet Xavier
Ranch Hand

Joined: Jun 19, 2008
Posts: 162
Hi All,

Deployed a WS in tomcat which is developed using Apache CXF.

and got the following exception

org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element (uri:"http://www.sample.project.com.au/common/message/Request/v1", local:"header"). Expected elements are <{}id>,<{}message>,<{}header>
at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:866)
at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:687)
at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:157)
at org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:203)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:238)
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:222)
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:202)
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:158)

Please find the code attached and Please help me, The problem occur only with request. do we need to do any extra configuration to make this work.

Please check the code here : http://www.filehosting.org/file/details/393799/sampleWS.rar

I agree. Here's the link: http://aspose.com/file-tools
subject: Exception Unwinding Now in Apache CXF while invoking service.
Similar Threads
unable to get response from payment website
Apache CXF webservice error
Tiles in JSF
Problem getting output using CXF & Spring
Cannot convert DataHandler to JMS mesage