On Dec 27, 2012, at 5:40 AM, N.s.Karthik 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.

If it was me, I would not do this.  Your setting yourself up for problems and 
the benefits from doing this are very minimal.  If it was me, the only thing I 
would put in "lib" are JDBC drivers.  

That's me though.  You're certainly free to do whatever.

> 
> I would like to know the configuration details for the following and where 
> need to be done ?

Not sure what you mean.  If you want to share libraries, just drop them in 
"lib".  No other configuration needed.

> 
> A new folder called  "Alphalib"  under Tomcat/lib ,  where all the jars need
> to be placed
> 
>    eg:  
>                 /Tomcat6.0.30 / lib / Alphalib / 1.jar, 2.jar, 3,jar.......
> 
> This helps in clear separation of mixing Tomcat/lib/*.jars with application
> specific jars.

By default, subfolders are not added to the class loader.  Look at 
"conf/catalina.properties", specifically the "common.loader" property to see 
what paths are added or to add more paths.

Also, see the following link which explains Tomcat's class loaders in detail.

  https://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html

Dan


> 
> 
> with regards
> N.s.Karthik
> 
> 
> 
> 
> --
> View this message in context: 
> http://tomcat.10.n6.nabble.com/New-Library-folder-tp4991580.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


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

Reply via email to