Thank you, but I've been told that...

>"In Tomcat 3.x, the class loader follows the usual "delegate upwards then
>look locally" approach, so that the class would be loaded from
>tomcat_home/lib unconditionally.
>
>In Tomcat 4.x, the underlying servlet spec gives web apps the option (it
>is not a requirement) to look in the local repositories (/WEB-INF/classes
>and /WEB-INF/lib/*.jar)  *first*, before delegating upwards, and Tomcat
>4.0 implements this feature."

You say in 3.3 I can accomplish the same thing as in tomcat4 though?  That
would be very nice!



Brandon

P.S.  My 3.2.1 does have and use $tomcat_home/classes, should it not?

-----Original Message-----
From: Jeff Turner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 11:57 PM
To: [EMAIL PROTECTED]
Subject: Re: Imaginative webapp setup. Is this possible to do?


On Wed, Aug 22, 2001 at 09:58:33AM -0500, Brandon Cruz wrote:
> So...if you can put all common class files into tomcat_home/classes, can
we
> put newer versions of the same class files into the new applications
> web-inf/classes and assume that they will be read first by the web
> application?  Or...can we put the old versions of the jar files into the
old
> applications web-inf/lib and assume those will be read first

No, in 3.2.x the $TOMCAT_HOME/lib always takes precedence over
WEB-INF/lib and WEB-INF/classes.

> I am using tomcat 3.2.1 with many vhosts and they all use one set of
classes
> and jar files right now, located in tomcat_home/classes and
tomcat_home/lib.

I didn't know there was a $TOMCAT_HOME/classes.. only $TOMCAT_HOME/lib.

> I want to update many of these classes for newer vhosts, but don't want it
> to change for the old applications using them.

Yep, you're out of luck. Upgrade to 3.3 or 4.0 if you want WEB-INF/* to
override $TOMCAT_HOME/*

--Jeff

> Brandon


Reply via email to