Howdy,
- NoClassDefFoundError is different from ClassNotFoundException.  Make
sure you understand the difference.  Then make sure you remove extra
copies of the servlet APIs from the classpath, specifically if you have
j2ee.jar or servlet.jar somewhere.

- In addition to Senor Duffy's post, read the Classloader How-To in the
tomcat documentation.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Guy Rouillier [mailto:[EMAIL PROTECTED]
>Sent: Monday, January 26, 2004 4:17 PM
>To: Tomcat Users List
>Subject: Classloading issue: common/lib/servlet-api.jar
>
>I found this message in the archives from Michael Duffy that is
relevant
>to my question:
>
>>>
>When Tomcat starts, it assumes the CLASSPATH for your
>Web app consists of:
>
>(1) The rt.jar, of course,
>(2) All the JARs in TOMCAT_HOME/common/lib, which are
>visible to all apps,
>(3) All the JARs in the TOMCAT_HOME/server/lib, which
>are visible only to Tomcat,
>(4) All the JARs in your WEB-INF/lib, which are
>visible only to your app,
>(5) All the .class files in your WEB-INF/classes,
>which are visible only to your app.
>
>That's it.
>
>If your Web app needs a JAR, put it in the WEB-INF/lib
>and you should be all set. - MOD
><<
>
>My page (which is running with a security manager, i.e, -security) is
>getting the following error (partial stack trace):
>
>java.lang.NoClassDefFoundError:
>javax/servlet/http/HttpSessionBindingListener
>        at java.lang.ClassLoader.defineClass0(Native Method)
>        at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
>        at
>java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123
>)
>
>I found that common/lib/servlet-api.jar contains this class, and if I
>manually add it to the classpath (by editing catalina.sh), my page will
>then work.  According to the note above, all jars on common/lib should
>be automatically available to my pages.  I haven't touched
>catalina.properties.
>
>Any idea why this jar is not being picked up automatically out of
>common/lib?  Thanks.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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

Reply via email to