Ok, after nearly a day's worth of mostly banging my head on my desk, I finally 
got my Cactus installation working!

The culprit was a copy of cactus-1.4.1.jar in my $JDK_HOME/jre/lib/ext folder. 
I think I'd put that there originally beause the Classpath Howto indicates 
that cactus.jar is one of the things that needs to be in the client-side 
classpath. However, by putting it in the extensions folder I'm guessing that 
I also made it part of the server's classpath (since I'm working and running 
tomcat on the same machine), which messed things up.

Why on earth that produced a "java.lang.NoClassDefFoundError: 
javax/servlet/http/HttpServlet", I don't understand at all. That should 
probably be in a FAQ -- or am I the only one who makes mistakes like this?

Anyway, thanks to those who responded for your help. Time to start writing 
test cases....

Ryan Olson

> > 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:65
>
> > >9) 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