logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: Class Cast Exception while Using Commons Logging With Log4j
Date Mon, 21 Apr 2003 13:46:47 GMT

Ashok,

The class loader based automatic "discovery process" in
commons-logging is known to cause the type of ClassCastExceptions you
encountered.

Could you please include the whole stack trace for a more precise
identification of the problem? Thank you.

At 06:24 PM 4/21/2003 +0530, ashokd wrote:
>Hi,
>
>I am using Commons Logging and Log4j in my Application.
>
>It is working fine, but some times it is giving ClassCastException.
>
>If once exception occurs then the same exception repeats until Restart the
>server.
>
>I have 2 static methods in my class, to debug from this methods I used the
>below code as class variable:
>
>private static Log logger = LogFactory.getLog( "DAOFactory" );
>
>Exception As Below:
>
>org.apache.commons.logging.LogConfigurationException:
>java.lang.ClassCastException: org.apache.commons.logging.impl.LogFactoryImpl
>
>
>Shall any one help on this.
>
>Thanks in Advance,
>Ashok.D

--
Ceki  For log4j documentation consider "The complete log4j manual"
       http://www.qos.ch/shop/products/clm_t.jsp 


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


Mime
View raw message