Deploying shared .jar 's 2006-12-11 - By olivier nouguier
Back hi, By http://tomcat.apache.org/tomcat-5 (See http://cat-5.ora-code.com).5-doc/class-loader-howto.html Shared is the parent classloader of webapp.
AFAIK the consequence of this in that a class loaded from webapp classloader can see other classes (whenever they come from shared, webapp or common), but the reverse is not true, and could lead to ClassNotDef or ClassNotFound exeption unless some classloader hack are performed ...
On 12/11/06, David Kerber <dckerber@(protected)> wrote: > > From what I've read in the Tomcat 5.5 docs, I should be able to deploy > a .jar that is shared across multiple webapps on Windows by putting it > in the (tomcat)/shared/lib folder, but I've never gotten that to work. > I've always had to put that jar in the web-inf/lib folder of each of the > webapps that need it, in order for them to be able to use it. Why is > that? Is there something I'm missing about deploying shared jars? The > wasted disk space doesn't matter, but the hassle of putting the same > .jar file in multiple different places does... > > Any help or explanations would be appreciated! > Dave > > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ > To start a new topic, e-mail: users@(protected) > To unsubscribe, e-mail: users-unsubscribe@(protected) > For additional commands, e-mail: users-help@(protected) > >
-- "Souviens-toi qu'au moment de ta naissance tout le monde ?tait dans la joie et toi dans les pleurs. Vis de mani?re qu'au moment de ta mort, tout le monde soit dans les pleurs et toi dans la joie."
|
|