mskendrick
Jun 15th, 2006, 10:30 AM
I have created an endpoint using Castor as the marshalling framework. However, when a request comes into the engine, I get the following message:
org.springframework.oxm.castor.CastorUnmarshalling FailureException: 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(Unmar shaller.java:589)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmar shaller.java:735)
at org.springframework.oxm.castor.CastorMarshaller.un marshalDomNode(CastorMarshaller.java:194)
at org.springframework.oxm.AbstractMarshaller.unmarsh alDomSource(AbstractMarshaller.java:259)
at org.springframework.oxm.AbstractMarshaller.unmarsh al(AbstractMarshaller.java:126)
at org.springframework.ws.endpoint.AbstractMarshallin gPayloadEndpoint.invoke(AbstractMarshallingPayload Endpoint.java:44)
at org.springframework.ws.endpoint.MessageEndpointAda pter.invoke(MessageEndpointAdapter.java:32)
at org.springframework.ws.MessageDispatcher.dispatch( MessageDispatcher.java:247)
at org.springframework.ws.MessageDispatcher.invoke(Me ssageDispatcher.java:209)
at org.springframework.ws.transport.http.MessageHandl erAdapter.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.p rocessRequest(FrameworkServlet.java:396)
at org.springframework.web.servlet.FrameworkServlet.d oPost(FrameworkServlet.java:360)
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?
Shannon Kendrick
org.springframework.oxm.castor.CastorUnmarshalling FailureException: 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(Unmar shaller.java:589)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmar shaller.java:735)
at org.springframework.oxm.castor.CastorMarshaller.un marshalDomNode(CastorMarshaller.java:194)
at org.springframework.oxm.AbstractMarshaller.unmarsh alDomSource(AbstractMarshaller.java:259)
at org.springframework.oxm.AbstractMarshaller.unmarsh al(AbstractMarshaller.java:126)
at org.springframework.ws.endpoint.AbstractMarshallin gPayloadEndpoint.invoke(AbstractMarshallingPayload Endpoint.java:44)
at org.springframework.ws.endpoint.MessageEndpointAda pter.invoke(MessageEndpointAdapter.java:32)
at org.springframework.ws.MessageDispatcher.dispatch( MessageDispatcher.java:247)
at org.springframework.ws.MessageDispatcher.invoke(Me ssageDispatcher.java:209)
at org.springframework.ws.transport.http.MessageHandl erAdapter.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.p rocessRequest(FrameworkServlet.java:396)
at org.springframework.web.servlet.FrameworkServlet.d oPost(FrameworkServlet.java:360)
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?
Shannon Kendrick