I had that same problem and it was in my classpath - I got Bill Brogan's book SOAP Programming with Java and followed his CLASSPATH and it worked. The CLASSPATH I used is:
echo $CLASSPATH .:/usr/local/soap/:/usr/local/soap/lib/soap.jar where my soap directory is /usr/local/soap and my tomcat is /usr/local/tomcat Hope this helps -Pat ----- Original Message ----- From: Xiao-Ye Wu <[EMAIL PROTECTED]> Date: Saturday, February 14, 2004 8:20 pm Subject: soap+tomcat > Hi, > I've installed soap with tomcat 3.3.1a, and I've set the classpath > according > to the installation instruction. I can get the soap main page via > the > browser, but when I testing the rpcrouter|messagerouter, it returns > an error > as below: > 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) > > the jdk i'm using is j2sdk1.4.1_04. > > could anyone help me to sort this out. Thanks very much. > > > >