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 Jonathan Schilling <jl...@caldera.com> on 2002/02/01 22:08:00 UTC

SOAP messaging - java.lang.NoClassDefFoundError: org/apache/soap/Envelope

Using Apache SOAP 2.2 together with Tomcat 3.2.3, I have SOAP RPC working
consistency, with both clients and services.

However, trying to get SOAP messaging working is giving me fits.  I'm using
the samples/messaging example from the distribution.  I put the client where
my RPC clients go, I put the service and DD where my RPC services go, so
I know the classpaths are ok.  I deploy the service ok.  Occasionally it
works, but then as soon as I try minor modifications and recompile, I get
the attached.

It can't really be telling me that it can't find the org/apache/soap/Envelope
class, can it?  I know that's there, both by javap checks and that RPC works.
Is it really the POProcessor class (the service class in the demo) that it 
can't find?  Or it found the class, but can't find a certain method it's
looking for?

Any enlightenment will be appreciated.

Jonathan Schilling	Caldera International, Inc.


$ java samples.messaging.SendMessage http://localhost:8080/soap/servlet/>
RESPONSE:
--------
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>Exception while handling service request: org/apache/soap/Envelope</faultstring>
<faultactor>/soap/servlet/messagerouter</faultactor>
<detail>
<stackTrace>java.lang.NoClassDefFoundError: org/apache/soap/Envelope
        at java.lang.Class.getMethod0(Native Method)
        at java.lang.Class.getMethod(Class.java:888)
        at org.apache.soap.util.MethodUtils.getEntryPoint(MethodUtils.java:114)
        at org.apache.soap.util.MethodUtils.getMethod(MethodUtils.java:548)
        at org.apache.soap.util.MethodUtils.getMethod(MethodUtils.java:528)
        at org.apache.soap.server.MessageRouter.invoke(MessageRouter.java:54)
        at org.apache.soap.providers.MsgJavaProvider.invoke(MsgJavaProvider.java:125)
        at org.apache.soap.server.http.MessageRouterServlet.doPost(MessageRouterServlet.java:268)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
        at org.apache.tomcat.core.Handler.service(Handler.java:287)
        at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
        at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
        at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
        at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
        at java.lang.Thread.run(Thread.java:484)
</stackTrace>
</detail>
</SOAP-ENV:Fault>

</SOAP-ENV:Body>
</SOAP-ENV:Envelope>