tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian <>
Subject HttpServlet not found?
Date Tue, 29 Nov 2005 15:50:49 GMT
Hi list,

First of all, sorry for my English, it's not my own language.

I've installed a tomcat (5.5.12) on debian/testing. Tomcat run  
perfectly fine with all servlets I got. But one of my "webapps"  
doesn't work. It connetcs to an MySQL-Database. It doesn't found the  
drivers. But that's not the problem.

The problem is, when I try to call one of the servlets (doesn't  
matter wich one, even simply "Hello World" does not work) I get an  
NoClassDefFoundError. I compiled it with
	"javac -cp /home/tomcat/j2ee/lib/j2ee.jar:/home/tomcat/mysql".
This displays no error.
But I can't access the servlet. it shows me that:
	javax.servlet.ServletException: Error allocating a servlet instance
	root cause
	java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet

all that happens only in one "webapps"-dircetory, all others are  
working fine. Even when I copy one servlet from another "webapp" to  
it, I get that error.

My $CLASSPATH is setting to this
api.jar:/../mysql/com/:/../mysql/org:/../	apache-tomcat-5.5.12/common/ 

When I try to run that servlet with "java" I get that error:
	java.lang.ClassNotFoundException: LoadDriver not found in  
and then comes the whole $CLASSPATH

Thanks for help and best regards,
Sebastian Funk

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message