tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Classloaders
Date Wed, 27 May 2009 13:33:38 GMT
> From: Jon Pearson [mailto:Jon.Pearson@sixnet.com]
> Subject: RE: Classloaders
> 
> I'm guessing that:
>  * sun.misc.Launcher$ExtClassLoader is the bootstrap class loader

Not quite - the bootstrap class loader is null; the ExtClassLoader is the one that looks in
the JRE's lib/ext directory.

>  * sun.misc.Launcher$AppClassLoader is the system class loader
>  * org.apache.catalina.loader.StandardClassLoader is the Tomcat
> 'common' class loader
>  * org.apache.catalina.loader.WebAppClassLoader is the Tomcat 'webapp'
> class loader for my project
>  * java.net.FactoryURLClassLoader is the class loader that I created to
> load classes out of my JAR plugin

Those four appear to be correct.

Can you determine the URLs supported by the last two?  Use the getURLs() API, or poke around
in the JMX beans with JConsole.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus
for use only by the intended recipient. If you received this in error, please contact the
sender and delete the e-mail and its attachments from all computers.


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


Mime
View raw message