On 27.12.2012, at 11:40, N.s.Karthik <nskarthi...@gmail.com> wrote:

> Hi
> 
> I have multiple web applications  working perfectly on Tomcat 7.0.30
> I know that jar files of similar can be moved to  Tomcat /lib folder  so the
> same could be shared 
> by multiple applications.

You know that *your specific jar files* can be moved to tomcat/lib? You'll 
wanna be really sure of that.
Static references used within these jar files can lead to permgen memory leaks 
and/or misbehavior (to put it in a grossly simplified way). See various 
conference talks and presentations by Mark Thomas, and part of following 
JavaOne session:
https://oracleus.activeevents.com/connect/sessionDetail.ww?SESSION_ID=7905

I think this is only worth the effort in very specific use cases, most commonly 
a multi tenant service with an instance of (almost) identical web apps per 
tenant. Just to save a few MB of permgen memory or disk space: don't do it. 

> This helps in clear separation of mixing Tomcat/lib/*.jars with application
> specific jars.

For that purpose, I would not nest your own lib folder within tomcat's lib 
folder. Place your folder next to the original lib folder, or even outside the 
tomcat directory.

As Daniel Mikusa already said, you can configure such a folder in 
conf/catalina.properties by modifying the common.loader property, if you really 
are determined to do that.

> with regards
> N.s.Karthik

Rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to