Well regarding #1 from what I understand the class in webapp web-inf will take priority, however, I can see how #2 can be a problem, but, does it only work one way? Meaning a class in sared/classes will not see webapp/web-inf/classes, so down the hierarchy, however, it will work just fine going up, so class in webapp will see classes in shared?
Thank you Oleg On Mon, 21 Feb 2005 10:54:45 -0600, QM <[EMAIL PROTECTED]> wrote: > On Sat, Feb 19, 2005 at 06:38:03PM -0800, Oleg wrote: > : If I have 200 users deployed on tomcat with 99% using identical > : classes, would it be ok to move all classes to shared/classes > : directory? Will that give better memory usage? Also, can I later add > : the classes that are different directly to WEB-INF/classes and will > : they be given priority? > > You've already received answers to the other points, so I'll address > just the last question: > > it depends > > With hierarchical classloaders, you can get yourself into a right snit > when 1/ there's version skew between the per-webapp class and the one in > shared/lib; and 2/ when a class in shared/lib depends on a class that's > in the per-webapp area (that is, it can't see a dependent class because > it's out of the scope of the current classloader). > > IIRC, both result in NoClassDefFoundError, and both can be a mess to > sort out if you don't know in advance where to start looking. > > -QM > > -- > > software -- http://www.brandxdev.net > tech news -- http://www.RoarNetworX.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]