jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SainTiss <saint...@gmx.net>
Subject Re: Baffled by classpath problem
Date Tue, 03 Dec 2002 09:49:58 GMT

what exactly are you trying to do?
Get the simpleServlet sample to work using a browser?

Or are you trying to get it to work using Ant and the junit task?



On Tue, 2002-12-03 at 04:29, Ryan Olson wrote:
> 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:cactus-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>

View raw message