Hi,
Since you're being precise, let's be correct: there can only be one
class definition per classloader.  You can have two classes with the
same fully-qualified name loaded twice in the same JVM instance by
separate classloaders.  For example, com.foo v1 in
webapp1/WEB-INF/classes and com.foo v2 in webapp2/WEB-INF/classes.  But
if there was a com.foo (any version) in jre/lib/ext it's the ONLY one
that would get loaded, because that repository is common to both webapp
classloaders and has higher priority than either webapp repository.

5.0.25 includes the bug fix, so the hotfix is not needed.
Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Mike Curwen [mailto:[EMAIL PROTECTED]
>Sent: Monday, May 17, 2004 6:37 PM
>To: 'Tomcat Users List'
>Subject: RE: 5.0.24 HotFix Answer
>
>As the Highlander says:  "THERE CAN BE ONLY ONE!"
>
>;)
>
>More properly, you would say that the JVM loads only one class
>definition per class, and so "the first one" wins, not only because
it's
>first, but because it will then become "the only".
>
>
>
>> -----Original Message-----
>> From: wsedio [mailto:[EMAIL PROTECTED]
>> Sent: Monday, May 17, 2004 5:23 PM
>> To: Tomcat Users List
>> Subject: Re: 5.0.24 HotFix Answer
>>
>>
>> On 17-05-2004 15:02, Shapira, Yoav wrote:
>>
>> > Yup, just extract it.  By definition (of the Servlet Spec), for the
>> > same repository classes comes before lib, so an individual
>> .class file
>> > will be loaded before its equivalent that's in a .jar.
>>
>> So the first class that is loaded prevails?
>>
>> Thanks.
>>
>> ---------------------------------------------------------------------
>> 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]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to