Can you try with either WSS4J 1.5.5 or 1.5.6? I removed all of the new-line insertion stuff in 1.5.5.
Colm. -----Original Message----- From: Yang, Gang CTR USA [mailto:[email protected]] Sent: 15 April 2009 20:53 To: [email protected] Subject: SOAPElement expected exception with working with JBossWS Hi, I'm trying to deploy our application that uses wss4j-1.5.4 into JBoss4.2.2(JBossWS 2.0.1) and getting the following exception: --- java.lang.IllegalArgumentException: SOAPElement expected at org.jboss.ws.core.soap.SOAPHeaderImpl.convertToHeaderElement(SOAPHeaderI mpl.java:286) at org.jboss.ws.core.soap.SOAPHeaderImpl.insertBefore(SOAPHeaderImpl.java:2 04) at org.apache.ws.security.util.WSSecurityUtil.prependChildElement(WSSecurit yUtil.java:580) at org.apache.ws.security.util.WSSecurityUtil.findWsseSecurityHeaderBlock(W SSecurityUtil.java:635) at org.apache.ws.security.message.WSSecHeader.insertSecurityHeader(WSSecHea der.java:160) ...... --- During debugging, I found wss4j is trying to insert a DOM Text node (with content of "\n")into the SOAP header while Jboss SOAPHeaderImpl is testing for SOAPElement. Apparently in Jboss' implementation, Text node is not a subclass of SOAPElement. Has anyone enccoutered the similar problem? What was the solution? Any idea or suggestion is appreciated. BTW, what is wss4j inserting the "\n" into the SOAP header for? Thanks, Gang --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
