logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gulcu <c...@qos.ch>
Subject Re: problem with log4j...Help Please!!!
Date Mon, 23 Mar 2009 18:29:47 GMT

The error means that you have two copies of log4j.jar loaded into memory at the 
same time by two different class loaders. Classes loaded by different class 
loaders are incompatible even if the classes are bitwise identical.

Pedro Moreno wrote:
> So the error I get at the output is the following:
> 
> 
>      [java] log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not
> assignable to a "org.apache.log4j.Appender" variable.
>      [java] log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
>      [java] log4j:ERROR [25.0] whereas object of type
>      [java] log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by
> [sun.misc.Launcher$AppClassLoader@11b86e7].
>      [java] log4j:ERROR Could not instantiate appender named "CONSOLE".
>      [java] log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not
> assignable to a "org.apache.log4j.Appender" variable.
>      [java] log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
>      [java] log4j:ERROR [25.0] whereas object of type
>      [java] log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by
> [sun.misc.Launcher$AppClassLoader@11b86e7].
>      [java] log4j:ERROR Could not instantiate appender named "CONSOLE".
> 
> 
> Can anyone help me??
> 

-- 
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch

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


Mime
View raw message