Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SOAP AND TOMCAT, Error  RSS feed

 
Evaristo Ballorca
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, i'm new in 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?
 
Angela Margot
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Evaristo Ballorca
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, i install the tomcat 4.0.2 and it run.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!