Hi, I ran into a similar problem while back. I know for sure that at one point when I was playing around with SOAP, something was clobbering the system classpath by setting it in a startup script. It might've been Tomcat. Check the java.class.path system property from a servlet and see if it matches the system class path (probably not). If not, look in tomcat's startup script and see what it's doing with class path.
- mark -----Original Message----- From: William Mok [mailto:[EMAIL PROTECTED] Sent: Friday, August 05, 2005 4:52 PM To: [email protected] Subject: SOAP addressbook example Hi, I am trying to run the SOAP addressbook example. I am following the steps in http://www.soapuser.com/server3.html. The java files for the addressbook is located in C:\Program Files\Apache Group\Tomcat 4.1\webapps\addressbook\WEB-INF\classes\samples\addressbook I have a startup script located in the bin directory and sets all the class path C:\Program Files\Apache Group\Tomcat 4.1\bin set CLASSPATH="C:\Program Files\Apache Group\Tomcat 4.1\common\lib\soap.jar" set CLASSPATH=%CLASSPATH%;"C:\Program Files\Apache Group\Tomcat 4.1\webapps\addressbook\WEB-INF\classes\samples\addressbook" set CLASSPATH=%CLASSPATH%;"C:\Program Files\Apache Group\Tomcat 4.1\common\lib\activation.jar" set CLASSPATH=%CLASSPATH%;"C:\Program Files\Apache Group\Tomcat 4.1\common\lib\mail.jar" set CLASSPATH=%CLASSPATH%;"C:\Program Files\Apache Group\Tomcat 4.1\common\lib\resolver.jar" set CLASSPATH=%CLASSPATH%;"C:\Program Files\Apache Group\Tomcat 4.1\common\lib\xercesImpl.jar" set CLASSPATH=%CLASSPATH%;"C:\Program Files\Apache Group\Tomcat 4.1\common\lib\xercesSamples.jar" set CLASSPATH=%CLASSPATH%;"C:\Program Files\Apache Group\Tomcat 4.1\common\lib\xml-apis.jar" java -cp %CLASSPATH% org.apache.soap.server.ServiceManagerClient http://localhost:10000/soap/servlet/rpcrouter deploy "C:\Program Files\Apache Group\Tomcat 4.1\webapps\addressbook\WEB-INF\DeploymentDescriptor.xml" The startup script runs fine and I have verified that the soap is startup properly because I can access the page http://localhost:10000/soap/servlet/rpcrouter When I try to run the command under the bin directory, it gives me the error java samples.addressbook.GetAddress http://localhost:10000/soap/servlet/rpcrouter "John B. Good" I got the error NoClassDefFoundError: samples/addressbook/GetAddress. I have noticed that some people on the mailing list have also difficulty in running this example. Please give me some advice as I am a beginner in java. Do I need to create a jar file for the addressbook example? May be I set something wrong in the deploymentdescriptor.xml file?
