this.getClass().getClassloader().getResource("<fully qualified name of the
common class>")
in the code of servlet will tell you the which jar it got loaded from

- Rajeev


-----Original Message-----
From: Ashwani Kalra [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 07, 2002 4:37 PM
To: [EMAIL PROTECTED]
Subject: same class in two different jar file in web-inf/lib dir


Hi,

I have two different jar files say a.jar and b.jar  in the WEB-INF/lib dir.
There is one common( same package) file which is present in both the
jars. I am accessing this class from say servlet. Then which of the jar file
will be used for this class. Basically I want to know the sequence in which
these jar file will be placed in the classpath?

TIA
Ashwani


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks
Ashwani Kalra
http://www.geocities.com/ashwani_kalra/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to