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: wss4j-dev-unsubscr...@ws.apache.org For additional commands, e-mail: wss4j-dev-h...@ws.apache.org