tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julien-mar...@wanadoo.fr
Subject Tomcat Class Loader (parent/child tree)
Date Tue, 17 Jun 2003 13:50:13 GMT

Hello,

According to the tomcat documentation: 

"Normally, when a class loader is asked to load a particular
class or resource, it delegates the request to a parent class
loader first, and then looks in its own repositories only if
the parent class loader(s) cannot find the requested class or
resource."

>>From what I understand from the documentation, the common/lib
directory is a parent to the webapp1/lib directory and therefore
according to the preceding quote, Tomcat should look first in
common/lib and THEN in webapp1/lib.

I tried putting two identically-named classes in the common/lib
directory and in the webapp1/lib.  My jsp uses the class loaded
from webapp1/lib and not the class loaded from common/lib.  Is
this not contradictory??

Julien.


-----
Sent using MailStart.com ( http://MailStart.Com/welcome.html )
The FREE way to access your mailbox via any web browser, anywhere!


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message