> From: Paolo Santarsiero [mailto:paolo.santarsi...@gmail.com] > Subject: Share libraries for Context Descriptors > > Differents apps often use same libraries, and I'd like to share > libraries at Context Descriptor level (in context.xml).
As has been discussed numerous times on this mailing list, sharing libraries at run time is almost always a really bad idea. Although it may reduce PermGen usage, memory and disk space are both extremely inexpensive these days, so that shouldn't be a concern. The dependency problems and inability to restart individual webapps far outweigh any resource savings. If you're talking about just sharing repository locations, that's not quite as bad, but still creates versioning dependency issues. You can develop your own webapp classloader (or use Tomcat's undocumented VirtualWebappLoader) to extend the repository locations beyond WEB-INF/lib and WEB-INF/classes, but you are introducing unnecessary complexity if all you're saving is a little disk space. Proper build and deployment scripts are usually a much better solution. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org