I am trying to set up a relatively simple web service using Spring WS, but am running into an error in the SAAJ classes. My environment is Java SDK 1.6, Tomcat 6.0.13, using spring-ws 1.0-rc2 maven bundles. The service is set up to use the Jaxb2Marshaller.
When debugging my webservice with a simple soap client (soapui.org) I get an error on any dummy request, somewhere during serialization of the response object stuff breaks down:
The following occurs in my catalina.out:
Corresponding stacktrace in localhost.log:Code:SEVERE: SAAJ0539: Unable to get header stream in saveChanges Jul 23, 2007 5:43:36 PM com.sun.xml.internal.messaging.saaj.soap.MessageImpl sav eChanges SEVERE: SAAJ0540: Error during saving a multipart message
I am stumped (nor have I been able to find anything helpful through Google). If anybody has a clue as to what could be wrong (doubtless it's something simple, I am a Spring-WS newbie) that would be most helpful!Code:java.io.IOException: org.apache.xml.serializer.ToXMLSAXHandler cannot be cast to org.apache.xml.serializer.SerializationHandler at com.sun.xml.internal.messaging.saaj.soap.impl.EnvelopeImpl.output(Env elopeImpl.java:298) at com.sun.xml.internal.messaging.saaj.soap.impl.EnvelopeImpl.output(Env elopeImpl.java:309) at com.sun.xml.internal.messaging.saaj.soap.SOAPPartImpl.getContentAsStr eam(SOAPPartImpl.java:305) at com.sun.xml.internal.messaging.saaj.soap.MessageImpl.getHeaderBytes(M essageImpl.java:947) at com.sun.xml.internal.messaging.saaj.soap.MessageImpl.saveChanges(Mess ageImpl.java:1098) at org.springframework.ws.soap.saaj.Saaj13Implementation.writeTo(Saaj13I mplementation.java:236)


Reply With Quote