You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Diogo Kollross <dk...@empro.com.br> on 2014/04/07 17:03:55 UTC

JULI ClassLoaderManager - weird behaviour with some class loaders

Hello,

Reading the source of the readConfiguration(ClassLoader) method in ClassLoaderLogManager I noticed that the input stream that is
used to load the properties file is not always set. It is only set when classloader is an instance of URLClassLoader, and when it's
the system class loader. Right before the end of the method the root logger of the parent class loader may be retrieved, but in this
case the properties file is not loaded as the stream was not set (with getResourceAsStream for example).

Is this intentional? Is it expected that the class loader will always be a URLClassLoader or the system class loader? Then why is
the root logger of the parent class loader searched whenever the input stream is not set?

Regards,

Diogo


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