You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by ma...@cnedi69.cnafmail.fr on 2001/05/23 09:30:04 UTC

Réf. : SOAP-ENV:Server.Exception -> briefsummary to help SOAP installation beginners ....




> Ok, don't panic, we'll try to recapitulate the different stages. I have
noted every issue I could find when configuring my server ....
First, have you installed a web server on your server machine like Apache
Tomcat, or Web sphere ..... (go on Apache SOAP Guide "Installation")....
To make it run, you must modify several parameters (my all examples concern
Tomcat 3.2.1) :
- first, you have to install Xerces (an XML parser) but I advise you 1.2.3
version instead of 1.3.1 (which is bugged ...)
- when you start Tomcat, it adds some paths in the classpath, and the
problem is that it inserts its owns paths before each others ... or,
xerces.jar must be in front... for that, edit the start file "tomcat.bat"
and replace "set CLASSPATH=%CP%" with "setCLASSPATH=C:
\xerces-1_2_3\xerces.jar;%CLASSPATH%;%cp%" or something like this (if you
use Unix OS)
- put, once and for all, the variables at TOMCAT_HOME=c:
\jakarta-tomcat-3.2.1 and JAVA_HOME = c:\jdk1.2.2
It would be suffisent to make Tomcat run ... you can test it by lauching
your web browser and type the URL "http://localhost:8080/, the welcome
"Tomcat" home page would be opened .... if that doesn't work, you needn't
read the rest ....

 then you must install SOAP (I recommend SOAP2.1 usually used by the
users...) and javamail1.2 and jaf1.0.1 (I'm not sure it is necessary, but
it was recommended and I prefer not to contradict ...) ....
you must place all of your packages in your classpath :
CLASSPATH=.;c:\foo\xerces-1_2_3\xerces.jar;c:
\foo\xerces-1_2_3\xercesSamples.jar;c:\foo\soap-2_1\lib\soap.jar;c:
\foo\soap-2_1;C:\foo\jakarta-tomcat-3.2.1\lib;c:
\foo\jaf-1.0.1\activation.jar;c:\foo\javamail-1.2\mail.jar
and, don't forget, before you start Tomcat from a console or a DOS command,
you must place the directory of your server program in the classpath ....
you must edit the Tomcat config file "server.xml" in order to link Tomcat
to SOAP by adding this context :

<Context path="/soap"
     docBase="path-to-apache-soap/webapps/soap"
     debug="1"
     reloadable="true">
</Context>



It would be sufficient to make your server and your client SOAP run .....
test it with the URL :
http://localhost:8080/soap
a web page must appear .... you can test the Apache tool administration by
deploying one example of service, even if it doesn't work ....

then, you can test the communication by trying the simple example :
http://www-106.ibm.com/developerworks/webservices/library/ws-peer2/?dwzone=w

Don't try to test any others examples while this one doesn't work ....
I hope this little summary will help some of yours ...
Good luck


Hi,
I got your email address from soap user group. I have some problem in
executing SOAP sample programs.
I have configured Tomcat and SOAP.
I tried the following URL on the browser and got the response as follows:
http://localhost:8080/soap/servlet/rpcrouter
SOAP RPC Router
Sorry, I don't speak via HTTP GET- you have to use HTTP POST to talk to me.
I tried the following command on DOS prompt and got the error:
C:\soap-2_1>java samples.addressbook.GetAllListings
http://localhost:8080/soap/servlet/rpcrouter
Generated fault:
  Fault Code   = SOAP-ENV:Server.Exception:
  Fault String = java.lang.NoSuchMethodError
Please help me to solve this problem.
I got struck in this problem for the last 2 days. Please help me.
Thanks.
Chouthri Palanisamy




---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org