Tomcat "Class not found" error

J

Joachim Jokisch

Hello everyone,

I'm running a Tomcat 3.3.1a on Windows 2000 and have deployed SOAP 2.2
and a web application to do some SOAP message processing. The
Application and SOAP is installed properly but when I try to send a
message to it, I get a message from the server stating that a class
connot be found (com.ericsson.services.mms.sdk.vasp.samples.sim.MMCRelay).
I've been looking for that class and found it in the
webapps/[myapp]/WEB-INF/classes... folder (in the correct subfolder as
specified in the class' name). Why doesn't Tomcat find the class??? Is
it a configuration error? Please help.


Here's the message from the server:

HTTP/1.0 500 Internal Server Error
Content-Type: text/xml; charset=utf-8
Content-Length: 2365
Set-Cookie: JSESSIONID=1xv2ka70o1;Path=/vasp
Date: Wed, 16 Jul 2003 13:41:36 GMT
Server: Tomcat Web Server/3.3.1 Final ( JSP 1.1; Servlet 2.2 )


<?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.BadTargetObjectURI</faultcode>
<faultstring>Unable to resolve target object:
com.ericsson.services.mms.sdk.vasp.samples.sim.MMCRelay</faultstring>
<faultactor>/vasp/servlet/messagerouter</faultactor>
<detail>
<stackTrace>java.lang.ClassNotFoundException:
com.ericsson.services.mms.sdk.vasp.samples.sim.MMCRelay
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at org.apache.soap.rpc.SOAPContext.loadClass(SOAPContext.java:557)
at org.apache.soap.server.http.ServerHTTPUtils.getTargetObject(ServerHTTPUtils.java:274)
at org.apache.soap.providers.MsgJavaProvider.locate(MsgJavaProvider.java:113)
at org.apache.soap.server.http.MessageRouterServlet.doPost(MessageRouterServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:484)
</stackTrace>
</detail>
</SOAP-ENV:Fault>
 
W

William Brogden

Joachim Jokisch said:
Hello everyone,

I'm running a Tomcat 3.3.1a on Windows 2000 and have deployed SOAP 2.2
and a web application to do some SOAP message processing. The
Application and SOAP is installed properly but when I try to send a
message to it, I get a message from the server stating that a class
connot be found (com.ericsson.services.mms.sdk.vasp.samples.sim.MMCRelay).
I've been looking for that class and found it in the
webapps/[myapp]/WEB-INF/classes... folder (in the correct subfolder as
specified in the class' name). Why doesn't Tomcat find the class??? Is
it a configuration error? Please help.

Does the SOAP administration utilitylist that class as one of the
known services?
 
J

Joachim Jokisch

Hello William,

in the SOAP administration utility no service is listed
(http://localhost:6666/soap/admin/index.html ist the utility, ok?).
The application I'm trying to run can be reached at:
http://localhost:6666/vasp/servlet/messagerouter

If I open the URL above the Webpage looks like this:

SOAP Message Router
Sorry, I don't speak via HTTP GET- you have to use HTTP POST to talk
to me.



William Brogden said:
Joachim Jokisch said:
Hello everyone,

I'm running a Tomcat 3.3.1a on Windows 2000 and have deployed SOAP 2.2
and a web application to do some SOAP message processing. The
Application and SOAP is installed properly but when I try to send a
message to it, I get a message from the server stating that a class
connot be found (com.ericsson.services.mms.sdk.vasp.samples.sim.MMCRelay).
I've been looking for that class and found it in the
webapps/[myapp]/WEB-INF/classes... folder (in the correct subfolder as
specified in the class' name). Why doesn't Tomcat find the class??? Is
it a configuration error? Please help.

Does the SOAP administration utilitylist that class as one of the
known services?


Here's the message from the server:

HTTP/1.0 500 Internal Server Error
Content-Type: text/xml; charset=utf-8
Content-Length: 2365
Set-Cookie: JSESSIONID=1xv2ka70o1;Path=/vasp
Date: Wed, 16 Jul 2003 13:41:36 GMT
Server: Tomcat Web Server/3.3.1 Final ( JSP 1.1; Servlet 2.2 )


<?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.BadTargetObjectURI</faultcode>
<faultstring>Unable to resolve target object:
com.ericsson.services.mms.sdk.vasp.samples.sim.MMCRelay</faultstring>
<faultactor>/vasp/servlet/messagerouter</faultactor>
<detail>
<stackTrace>java.lang.ClassNotFoundException:
com.ericsson.services.mms.sdk.vasp.samples.sim.MMCRelay
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at org.apache.soap.rpc.SOAPContext.loadClass(SOAPContext.java:557)
at org.apache.soap.server.http.ServerHTTPUtils.getTargetObject(ServerHTTPUtils.
java:274)
org.apache.soap.providers.MsgJavaProvider.locate(MsgJavaProvider.java:113)
org.apache.soap.server.http.MessageRouterServlet.doPost(MessageRouterServlet
.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10I
nterceptor.java:176)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:516)
at java.lang.Thread.run(Thread.java:484)
</stackTrace>
</detail>
</SOAP-ENV:Fault>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top