> From: Alan Chaney [mailto:[EMAIL PROTECTED] 
> Subject: Tomcat 6 and placing jars in $CATALINA_HOME/lib
> 
> Is there any reason why these jars (and their dependencies) 
> should not be placed in $CATALINA_HOME/lib?

The primary reason not to lump everything in one basket is webapp
independence, which the servlet spec encourages.  If you do put commonly
used jars in the lib directory, you're tying all your webapps to one
instance of those particular classes.  This can create problems with
versioning, should some of your apps migrate to newer levels of the
common libraries, and with reloading webapps, since those libraries may
retain references somewhere to objects of the webapp.

Given the price of disk and memory these days, along with automated
scripts to build your .war files, the only thing you'd really save on is
time to transfer an updated webapp.  Is that really a dominant factor,
given the drawbacks?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to