-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Daniel,

On 12/27/12 9:16 AM, Daniel Mikusa wrote:
> 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.

+1

>> 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.

OP does not want to "pollute" his Tomcat lib/ folder.

>> 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.

Or shared.loader -- it depends on exactly the requirements and the
desired outcome.

> 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

+1

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEAREIAAYFAlDcdOEACgkQ9CaO5/Lv0PAFEACgj07egyqjZqqxMYWBMAQUePAK
XtEAmwWMY1ntueD5WVyVZEsP9XxKwGoH
=7pOE
-----END PGP SIGNATURE-----

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

Reply via email to