I have created an endpoint using Castor as the marshalling framework. However, when a request comes into the engine, I get the following message:
After doing some research, It appears that the class org.exolab.castor.xml.Unmarshaller needs to know the class type in order to unmarshal the XML. I am not using a Castor mapping file, so I thought maybe I should specify the class type on the bean org.springframework.oxm.castor.CastorMarshaller, but there is no property that I can set. Is anyone else having this problem?Code:org.springframework.oxm.castor.CastorUnmarshallingFailureException: Castor unmarshalling exception: The class for the root element 'FindClaims' could not be found.; nested exception is The class for the root element 'FindClaims' could not be found. Caused by: The class for the root element 'FindClaims' could not be found. at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:589) at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:735) at org.springframework.oxm.castor.CastorMarshaller.unmarshalDomNode(CastorMarshaller.java:194) at org.springframework.oxm.AbstractMarshaller.unmarshalDomSource(AbstractMarshaller.java:259) at org.springframework.oxm.AbstractMarshaller.unmarshal(AbstractMarshaller.java:126) at org.springframework.ws.endpoint.AbstractMarshallingPayloadEndpoint.invoke(AbstractMarshallingPayloadEndpoint.java:44) at org.springframework.ws.endpoint.MessageEndpointAdapter.invoke(MessageEndpointAdapter.java:32) at org.springframework.ws.MessageDispatcher.dispatch(MessageDispatcher.java:247) at org.springframework.ws.MessageDispatcher.invoke(MessageDispatcher.java:209) at org.springframework.ws.transport.http.MessageHandlerAdapter.handle(MessageHandlerAdapter.java:57) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:797) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:727) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:360)
Shannon Kendrick


Reply With Quote