This week's giveaway is in the Java/Jakarta EE forum. We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line! See SOAP. I have a problem and i d�n�t know how resolve it. I'm working with Tomcat 3.1. and i installed soap services. It work fine but when i want deploy the first service i get an error. In the server console i get: SOAP Service Manager: Unable to read 'DeployedServices.ds': assuming fresh start
And inthe deploy console: Ouch, the call failed: Fault Code = SOAP-ENV: Server.Exception: Fault String = java.lang.NoSuchMethodError What is wrong? Thanks all. Could anybody help me?
Go to http://xml.apache.org/soap/faq/faq_chawke.html - they have a good list of problems commonly encountered with SOAP...one sounds like yours. The following is what I found on the site: 1.5 Help! The Samples won't work. Every time I run a sample client I get this response: "Fault String = java.lang.NoSuchMethodError" Ensure that: (a) You have deployed the sample service you want to use. (b) Xerces.jar is the very first entry in your classpath (set this in tomcat.bat or tomcat.sh as per the SOAP installation instructions). (c) There are no other XML parsers in your classpath. Some people have experienced this problem due to an early version of the JAXP package hiding in JAVA_HOME/jre/lib/ext. (d) The sample classes are in the server's CLASSPATH. Give it a try - it can't hurt! Another good site for the Apache SOAP is http://xml.apache.org/soap/docs/index.html Good luck!
That no such method error is likely related to the XML parser version. SOAP requires a parser that is namespace aware. Tomcat 3.1 used an earlier version as I recall. You might as well "bite the bullet" and upgrade to Tomcat 4.0 - it implements the latest servlet and JSP APIs and uses an up to date XML parser. Bill