Hi all,

Ok, I'm pretty much begging for mercy here.. I dislike it when people ask FAQs 
on mailing lists as much as anyone, but I've spent hours reading the docs and 
trying to get the cactus tutorial to work and I'm just not getting anywhere. 
Basically I've got everything set up as described in the Tomcat-HOWTO, 
including having all the cactus jars copied into WEB-INF/lib. However, no 
matter how I try to run the test, whether by command line or though the web 
browser, I always end up with:

javax.servlet.ServletException: Error allocating a servlet instance
        at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:659)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
[snip]

root cause

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
[...]

I've read and re-read the CLASSPATH howto, and I'm positive that I've got the 
HttpServlet class & company in both my client and server classpaths -- I even 
went ahead and put j2ee.jar in WEB-INF/lib and can verify that it's being 
deployed by Tomcat. 

Any help would be greatly appreciated.

Ryan Olson


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to