You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by "Elsholz, Alexander" <Al...@ps-sangross.de> on 2001/08/30 10:58:10 UTC
Problems with tomcat and SOAP
Hi,
to develop a "Hello World" Soap i installed tomcat and SOAP:
1. Tomcat downloaded
2. set JAVA_Home
3. Change line 104 in tomcat.bat (swap CP and Classpath)
4. Download SOAP
5. Copy SOAP.war to tomcat/webapps
6. Copy xcerces, mail and activation to tomcat/lib
7. start tomcat
8. to test: 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.
9. want to see the list of deployed services...
10. change to
C:\Programme\Java\tomcat\webapps\soap\WEB-INF\classes\org\apache\soap\server
>
11. java ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter
list
exception in thread "main" java.lang.NoClassDefFoundError:
ServiceManagerClient
but i was in the right directory
C:\Programme\Java\tomcat\webapps\soap\WEB-INF\classes\org\apache\soap\server
>dir
Datenträger in Laufwerk C: ist DRIVE_C
Datenträgernummer: 395C-380D
Verzeichnis von
C:\Programme\Java\tomcat\webapps\soap\WEB-INF\classes\org\apach
e\soap\server
29.08.2001 14:34 <DIR> .
29.08.2001 14:34 <DIR> ..
29.08.2001 14:34 <DIR> http
29.08.2001 14:34 2.195 BaseConfigManager.class
29.08.2001 14:34 2.336 DefaultConfigManager.class
29.08.2001 14:34 15.186 DeploymentDescriptor.class
29.08.2001 14:34 831 DOMFaultListener.class
29.08.2001 14:34 1.060 ExceptionFaultListener.class
29.08.2001 14:34 2.211 InvokeBSF.class
29.08.2001 14:34 3.306 MessageRouter.class
29.08.2001 14:34 6.171 RPCRouter.class
29.08.2001 14:34 356 ServerConstants.class
29.08.2001 14:34 2.678 ServerUtils.class
29.08.2001 14:34 6.197 ServiceManager.class
29.08.2001 14:34 7.122 ServiceManagerClient.class
29.08.2001 14:34 817 SMTP2HTTPBridge$1.class
29.08.2001 14:34 1.226 SMTP2HTTPBridge$2.class
29.08.2001 14:34 5.965 SMTP2HTTPBridge.class
29.08.2001 14:34 187 SOAPEventListener.class
29.08.2001 14:34 631 SOAPFaultEvent.class
29.08.2001 14:34 272 SOAPFaultListener.class
29.08.2001 14:34 1.066 SOAPFaultRouter.class
29.08.2001 14:34 1.143 TypeMapping.class
29.08.2001 14:34 4.953 TypeMappingSerializer.class
29.08.2001 14:34 3.631 XMLConfigManager.class
22 Datei(en) 69.540 Bytes
3 Verzeichnis(se), 17.162.240 Bytes frei
12. deploy a Service with the admin-tool:
Service urn:Hello deployed.
in the Console: SOAP Service Manager: Unable to read 'DeployedServices.ds':
assuming fresh start
13. copy the classfile to webapps in tomcat-directory
14. restart tomcat
15. start the Client:
on the Console:
2001-08-30 10:57:24 - ContextManager: Adding context Ctx( /examples )
2001-08-30 10:57:24 - ContextManager: Adding context Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error messages
2001-08-30 10:57:24 - ContextManager: Adding context Ctx( )
2001-08-30 10:57:24 - ContextManager: Adding context Ctx( /test )
2001-08-30 10:57:24 - ContextManager: Adding context Ctx( /soap )
2001-08-30 10:57:24 - ContextManager: Adding context Ctx( /hello )
2001-08-30 10:57:25 - PoolTcpConnector: Starting HttpConnectionHandler on
8080
2001-08-30 10:57:25 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8007
2001-08-30 10:57:32 - Ctx( ): 404 R( + /apache-soap/servlet/rpcrouter +
null)
null
on the Client:
Caught SOAPException (SOAP-ENV:Client): Connection shutdown: JVM_recv in
socket input stream read
What are my mistakes??? Its a simple helloWorld from a tutorial at
JavaWorld.com.
I use tomcat 3.2.3 and SOAP 2.2
pleas help...
alex