tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Tomcat 5: the classloader mystery
Date Thu, 29 Apr 2004 18:50:46 GMT


>I have some common utility code that is used by all webapps. The code
>is contained in some .jar files and some classes. I placed this code in
>the shared\lib and shared\classes directory wich accordning to the
>documentation is the correct place. But my Servlets cannot find
>these files.

Other people have reported difficulties with shared/lib.  Try common/lib

>The servlets invokes EJB that is hosted by an appserver. Therefore
>I had to add the appserver specific classes and .jar files to the
>variable. I made these changes in the file

Your "therefore" conclusion is probably wrong.  Stuff you add to the
environment CLASSPATH isn't visible to your web application any how.
Instead, put the remote EJB client jar/classes in your WEB-INF/lib or
WEB-INF/classes folder.  You can still control things like the initial
context factory class name by specifying it in the environment hashtable
argument to the initial context constructor.

Yoav Shapira

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:
For additional commands, e-mail:

View raw message