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 Xiao-Ye Wu <xy...@ecs.soton.ac.uk> on 2004/02/18 22:45:38 UTC

tomcat+soap still don't work


Hi ya,
   I've tried both solutions, but none of them worked on my machine, get the 
same error:

java.lang.NoClassDefFoundError: javax/servlet/ServletContext
        at 
org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext
(ServerHTTPUtils.java:102)
        at admin.deploy_1._jspService(deploy_1.java:71)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        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:536)

Is SOAP compatable with windows98 or it only works on winnt & winxp? 

thanks very much for help.

xiaoye wu


Re: tomcat+soap still don't work

Posted by Scott Nichol <sn...@scottnichol.com>.
>From the stack trace, one sees that an Apache SOAP class is loaded, but from its context the ServletContext class cannot be loaded.  This indicates that something is not deployed properly.

1. Did you deploy Apache SOAP as a webapp within Tomcat?  There are various ways that can be done (e.g. put soap.war in $TOMCAT_HOME/webapps, unjar soap.war in a subdirectory, such as $TOMCAT_HOME/webapps/soap, or create a Tomcat context that points to soap.war some other place).

2. Did you copy soap.jar into another Tomcat directory?  You should *not* do this.  All Apache SOAP classes should only be in the webapp.

3. Did you change the Tomcat classpath in tomcat.sh or tomcat.bat to include the path to soap.jar?  You should *not* do this.

4. Did you copy soap.jar to $JAVA_HOME/jre/lib/ext or $JAVA_HOME/lib/ext?  You should *not* do this.

Basically, as 2, 3, and 4 specifically address, Tomcat should have no place from which to load Apache SOAP classes other than the Apache SOAP webapp.

Also, for best results, deploy your classes for services to the Apache SOAP webapp, as well.

Scott Nichol

Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message ----- 
From: "Xiao-Ye Wu" <xy...@ecs.soton.ac.uk>
To: <so...@ws.apache.org>
Sent: Wednesday, February 18, 2004 4:45 PM
Subject: tomcat+soap still don't work




Hi ya,
   I've tried both solutions, but none of them worked on my machine, get the 
same error:

java.lang.NoClassDefFoundError: javax/servlet/ServletContext
        at 
org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext
(ServerHTTPUtils.java:102)
        at admin.deploy_1._jspService(deploy_1.java:71)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        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:536)

Is SOAP compatable with windows98 or it only works on winnt & winxp? 

thanks very much for help.

xiaoye wu