« Return to Thread: WS-Security and Tomcat error

WS-Security and Tomcat error

by pwanner :: Rate this Message:

Reply to Author | View in Thread

Hi everybody,

In a pervious post I found a problem when I tried to sign the SOAP response.
(http://www.nabble.com/Signing-both-request-and-response---Error-signing-response-to14029871.html)

I decided to dig a bit and I tried the apache hello_world exemple with signature and encryption of the SOAP request and response. (org.apache.cxf.systest.ws.security in Apache SVN). This is the standalone Jetty based client and server. And it works fine in both ways!

OK, so then I decided to move the server part in Tomcat. and I got the same problem on the response as described in my previous post (see the stacktrace below).

Is it a problem with Tomcat? Any idea?
Philippe


I'm using JDK 1.6.0_03 (with jaxb 2.1), Tomcat 6.0.13, CXF 2.1-SNAPSHOT and Spring 2.0.7


11 déc. 2007 11:56:00 com.sun.xml.internal.messaging.saaj.soap.MessageImpl saveChanges
GRAVE: SAAJ0539: Unable to get header stream in saveChanges
11 déc. 2007 11:56:00 com.sun.xml.internal.messaging.saaj.soap.MessageImpl saveChanges
GRAVE: SAAJ0540: Error during saving a multipart message
11 déc. 2007 11:56:00 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.binding.soap.SoapFault: SOAPEXCEPTION
Caused by: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Error during saving a multipart message
Caused by: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Unable to get header stream in saveChanges:
Caused by: java.io.IOException: org.apache.xml.serializer.ToXMLSAXHandler cannot be cast to org.apache.xml.serializer.SerializationHandler
INFO: Interceptor has thrown exception, unwinding now
org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.
org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader.
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
Message: Premature end of file.







 « Return to Thread: WS-Security and Tomcat error