commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kurt Guenther <ku...@serent.com>
Subject Re: logging: more then one version of 'org.apache.commons.logging.Log' visible
Date Sat, 01 Oct 2005 15:13:48 GMT
Kurt Guenther wrote:

>
> Here's the deal.  I can't explain it, but this is what's happening:
>
> In org/apache/commons/logging/impl/LogFactoryImpl.java around line 
> #360 is the method getLogConstructor():
>
>    logClassName=org.apache.commons.logging.impl.Log4JLogger
>    logInterface=org.apache.commons.logging.Log
>
> However, this is returning false:
>
>    logInterface.isAssignableFrom(logClassName)
>
> which doesn't seem right.   Then checks interfaces and indeeed,  
> org.apache.commons.logging.Log is an interface of 
> org.apache.commons.logging.impl.Log4JLogger, so I get the exception:
>
> org.apache.commons.logging.LogConfigurationException: Invalid class 
> loader hierarchy.  You have more than one version of 
> 'org.apache.commons.logging.Log' visible, which is not allowed.
>
> It almost seems like a JDK error, but I couldn't find any open bugs on 
> this.
>
> --Kurt
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
>

I should mention that I'm running:

Linux seeker 2.6.13-gentoo-r2
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-b05)

Again, this only occurs when I run the Junit Swing UI.  I have no 
problems with the TextUI.

--Kurt



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message