commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <>
Subject Re: logging: more then one version of 'org.apache.commons.logging.Log'
Date Wed, 09 Nov 2005 21:26:02 GMT
On Wed, 2005-11-09 at 09:17 -0500, Keith Naas wrote:


> Question:
> The LogFactoryImpl loads the interface on the ClassLoader from
> LogFactoryImpl.getClass().getClassLoader().  However, it loads the
> implementation on the Thread.currentThread().getClassLoader().  Why does
> it use two different ClassLoaders instead of loading both the interface
> & implementation on the same ClassLoader? 

if it's education you're looking for...

for a short answer, it's because years ago this was considered the
correct way to behave according to the specifications released at that

for a long answer, consult and search the mail

if it's a fix you're looking for...

the trunk contains code that copes more gracefully with some common use
cases and is backwards compatible. there's a good chance that your
problem will go away if you upgrade. 

- robert

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message