This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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
Author

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

Thanks,
Bennet.
 
Have you checked out Aspose?
 
subject: Exception Unwinding Now in Apache CXF while invoking service.
 
It's not a secret anymore!