SOAP Message Handler - NoSuchMethodException while accessing message
I use JAX-WS 2.0 on a Tomcat 5.0.27 and is facing a severe problem. I have a SOAP Message Handler and I get a NoSuchMethod Exception while accessing the SOAP Header.
SOAPEnvelope envelope = msg.getSOAPPart().getEnvelope();
I saw this problem being reported in several forums with some solutions too. For example if I remove the xml-apis.jar from the TOMCAT_HOME/common/endorsed folder everything works well. But I cannot do this beacuse I use a shared hosted Tomcat.
Is the problem due to conflict between the sun SAAJ implementation and the one in the Tomcat 5.0.27 xml-apis.jar. Can this be overcome by setting some system properties like javax.xml.soap.MessageFactory?