As much as I kow every thing you put in the jre/lib/ext becomes 'part of the
jre' and will be treated as an extension to the jre. 

Mit freundlichen Gr�ssen 

Galexis AG 
Beat Friedli � SW-Entwicklung (DDIS/ASW)
Grubenstrasse 11 � CH-3322 Schoenbuehl
tel: +41 (0)31 858 72 32 � fax: +41 (0)31 858 78 81



-----Original Message-----
From: Ryan Olson [mailto:[EMAIL PROTECTED]]
Sent: Mittwoch, 4. Dezember 2002 00:53
To: Cactus Users List
Subject: [Resolved] Baffled by classpath problem


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]>

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

Reply via email to