Sorry - you're right on the shared vs common. I put the jdbc drivers in
common/lib as I access them via Tomcat's jndi - so Tomcat uses them. Is that
correct for them????

Thanks - dave


-----Original Message-----
From: Mark Eggers [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 19, 2005 4:19 PM
To: Tomcat Users List
Subject: Re: Where to place a common jar file?

>From the Tomcat documetation:

http://localhost:8080/tomcat-docs/class-loader-howto.html

* For classes and resources specific to a particular 
web application, place unpacked classes and resources 
under /WEB-INF/classes  of your web application 
archive, or place JAR files containing those classes 
and resources under /WEB-INF/lib of your web
application archive.

* For classes and resources that must be shared across

all web applications, place unpacked classes and 
resources under $CATALINA_BASE/shared/classes, or
place 
JAR files containing those classes and resources under

$CATALINA_BASE/shared/lib.

Further on down the page:

Common - This class loader contains additional classes

that are made visible to both Tomcat internal classes 
and to all web applications. Normally, application 
classes should NOT  be placed here.

/mde/

--- David Smith <[EMAIL PROTECTED]> wrote:

> Shared jars can be placed in common/lib, but keep in
> mind that all your
> webapps will be locked to the same version of the
> jar.  It's better to
> have a copy in the webapp instead where you'll have
> more version
> independence between wepapps.
> 
> --David
> 
> 
> David Thielen wrote:
> 
> >Hi;
> >
> > 
> >
> >If I have a jar file used by multiple servlets,
> should I put it in
> >${catalina}/common/lib or in
> ${catalina}/webapps/${each_app}/WEB-INF/lib?



                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



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

Reply via email to