logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Herman, Dave" <dher...@intrado.com>
Subject RE: ClassLoader
Date Sat, 19 Jan 2002 00:17:21 GMT
> This FAQ item is actually misleading.
> Log4j does not attempt to do any class loading itself. I 
> repeat, log4j does not
> do classloading.

Actually, it's when the PropertyConfigurator loads an appender class that it
calls Thread.currentThread().getContextClassLoader().loadClass(name). The
behavior in 1.1.3 was simply to call Class.forName(name). This is where the
problem is: Ant doesn't set the context class loader, so some classes are
being loaded by the Ant class loader and others are being loaded by the
context class loader, which is the default JRE loader.


To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

View raw message