tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: shared library in tomcat container runtime`
Date Fri, 22 Apr 2011 18:18:11 GMT
Hash: SHA1


On 4/22/2011 1:33 PM, Yongqin Xu wrote:
> that means, for our own shared lib jars, we have to duplicate them
> for each deployed apps, even if sometimes the shared lib jars could
> be over 100MB. That would really cumbersome!

100MB of libraries is not going to over-fill your disk, not will it
overfill the disk on your revision control server.

What /will be/ cumbersome is trying to remember which libraries you need
to install into your application server's shared library directory
before you can get your webapp to successfully run.

Sun went through great pains to make sure that webapps could be
self-contained, all wrapped safe and warm in their WAR files which
contained everything they needed other than container-guaranteed
services. Why not follow the standard and package your dependent
libraries with your webapp?

> Does TC has other way around to fix this? WLS does not work that
> way.

You can use a "shared" class loader if you want to. Read to see how you can do that. I wouldn't recomment
using it, though: you really limit the flexibility of your webapps when
you start doing things like this.

- -chris
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message