We have a Web Service Client that works fine under Tomcat but when we run under JBoss, we get a ClassCastException when getting the result from the header like below.

SoapMessage soapMessage =...