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 devnulle <de...@free.fr> on 2004/04/15 19:26:28 UTC

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet

Hi all

 

I have a problem that seems common (I have seen it many times on few forum),
but I can't still solve it :(

 

I have installed Tomcat 5.0.19 + Apache Soap, deployed Apache Soap by copy
soap.war into webapps ..

 

Then I launch startup.bat, and I enter in IE the url
localhost:8080/soap/index.html .

 

Then I click in deploy and have this error 

 

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet

            org.apache.jsp.admin.deploy_jsp._jspService(deploy_jsp.java:59)

 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)

            javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
11)

 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)

 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)

            javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

 

My env is :

CLASSPATH :
E:\travail\javaLib\soap-2_3_1\lib\soap.jar;E:\travail\javaLib\xerces-2_6_2\x
mlParserAPIs.jar;E:\travail\javaLib\javamail-1.3.1\mail.jar;E:\travail\javaL
ib\jaf-1.0.2\activation.jar

CATALINA_HOME : D:\Program Files\jakarta-tomcat-5.0.19

JAVA_HOME : C:\j2sdk1.4.2_04

 

I haven't modify or create any conf file ..

 

The prob seems to be a classpath prob, apache soap seems not to find
soap.jar and all the other jar .. But I could not solve this problem !!

 

Is someone has an idea ?

 

Ths a lot


Re: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet

Posted by Scott Nichol <sn...@scottnichol.com>.
Have you followed the general instructions for installing Apache SOAP (http://cvs.apache.org/viewcvs.cgi/*checkout*/ws-soap/java/docs/install/index.html?rev=1.33) and the specific instructions for installing with Tomcat 5 (http://cvs.apache.org/viewcvs.cgi/*checkout*/ws-soap/java/docs/install/tomcat50.html?rev=1.2)?

Do you get a similar error if you point your browser to the admin page (http://localhost:8080/soap/admin/ for me) and click the "List" button?

Do you get an error when you run the command line admin tool?

    java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list

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: "devnulle" <de...@free.fr>
To: <so...@ws.apache.org>
Sent: Thursday, April 15, 2004 1:26 PM
Subject: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet


Hi all

 

I have a problem that seems common (I have seen it many times on few forum),
but I can't still solve it :(

 

I have installed Tomcat 5.0.19 + Apache Soap, deployed Apache Soap by copy
soap.war into webapps ..

 

Then I launch startup.bat, and I enter in IE the url
localhost:8080/soap/index.html .

 

Then I click in deploy and have this error 

 

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet

            org.apache.jsp.admin.deploy_jsp._jspService(deploy_jsp.java:59)

 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)

            javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
11)

 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)

 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)

            javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

 

My env is :

CLASSPATH :
E:\travail\javaLib\soap-2_3_1\lib\soap.jar;E:\travail\javaLib\xerces-2_6_2\x
mlParserAPIs.jar;E:\travail\javaLib\javamail-1.3.1\mail.jar;E:\travail\javaL
ib\jaf-1.0.2\activation.jar

CATALINA_HOME : D:\Program Files\jakarta-tomcat-5.0.19

JAVA_HOME : C:\j2sdk1.4.2_04

 

I haven't modify or create any conf file ..

 

The prob seems to be a classpath prob, apache soap seems not to find
soap.jar and all the other jar .. But I could not solve this problem !!

 

Is someone has an idea ?

 

Ths a lot