tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lars Ohlén <l...@ohlen.se>
Subject Re: Tomcat 5: the classloader mystery
Date Thu, 29 Apr 2004 20:54:18 GMT
>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

Two things here: Classes in the CLASSPATH are visible to my web application
and
second it totally unpractical to have a duplicate location for my
application servers
several MB large installation.



----- Original Message ----- 
From: "Shapira, Yoav" <Yoav.Shapira@mpi.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Thursday, April 29, 2004 8:50 PM
Subject: RE: Tomcat 5: the classloader mystery



Hi,

>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
instead.

>The servlets invokes EJB that is hosted by an appserver. Therefore
>I had to add the appserver specific classes and .jar files to the
CLASSPATH
>variable. I made these changes in the setclasspath.sh 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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message