You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Deacon Marcus <de...@wwtech.pl> on 2002/02/03 12:11:46 UTC

ClassLoader priorities?

Hi,
Is it possible to override single classes in Tomcat by placing .class files
in server/classes? If a .class exists both in /lib/<somejar>.jar and
/classes/<package>/<class>.class which one is used?

Greetings, deacon Marcus


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: ClassLoader priorities?

Posted by Sriram N <sr...@yahoo.com>.
--- Deacon Marcus <de...@wwtech.pl> wrote:
> Hi,
> Is it possible to override single classes in Tomcat by placing .class files
> in server/classes? If a .class exists both in /lib/<somejar>.jar and
> /classes/<package>/<class>.class which one is used?
> 

For Tomcat 4, the following priority list is followed:
/WEB-INF/classes of your web application 
/WEB-INF/lib/*.jar of your web application 
Bootstrap classes of your JVM 
System class loader classses (described above) 
$CATALINA_HOME/common/classes 
$CATALINA_HOME/common/lib/*.jar 
$CATALINA_HOME/classes 
$CATALINA_HOME/lib/*.jar 

Please refer to
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html, from
where I have pasted the list above.

> Greetings, deacon Marcus
> 
Sriram


__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>