Where to place a common jar file?

2005-09-19 Thread David Thielen
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?

 

I ask because I have seen various warnings that most jar files need to be
placed in each webapp and not in common (like struts).

 

??? - thanks - dave



Re: Where to place a common jar file?

2005-09-19 Thread David Smith
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?

 

I ask because I have seen various warnings that most jar files need to be
placed in each webapp and not in common (like struts).

 

??? - thanks - dave


  



-- 
===
David Smith
Network Operations Supervisor
Department of Entomology
College of Agriculture  Life Sciences
Cornell University
2132 Comstock Hall
Ithaca, NY  14853
Phone: 607.255.9571
Fax: 607.255.0939


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



Re: Where to place a common jar file?

2005-09-19 Thread Mark Eggers
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]



RE: Where to place a common jar file?

2005-09-19 Thread David Thielen
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]



RE: Where to place a common jar file?

2005-09-19 Thread Mark Eggers
I think so.  If you use global naming resources and a
resource link (accessing your jdbc database via jndi),
then you might only need to place the jdbc drivers in
server/lib.

Reading some other online documentation, this appears
to be the preferred method.

/mde/

--- David Thielen [EMAIL PROTECTED] wrote:

 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




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

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