logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gulcu <lis...@qos.ch>
Subject Re: Clashing between two different versions of log4j.
Date Fri, 24 Aug 2007 15:16:21 GMT
Hello Kumar,

Since you have partially identifier the problem, couldn't you just use the same 
version of log4j?

Prathib Kumar wrote:
> Hi, 
> 
> I m using Tomcat 5.5 and my web application uses 2 different versions(1.1.3 & 1.2.13)
 of log4j. I have placed one log4j under shared/lib folder and other inside the web application(tomcat/webapps/myapp/lib).

> 
> When I use the RollingFile Appender is used, It is throwing the following Exception.
> 
> log4j:WARN Failed to set property [file] to value "..\..\log\lmsportal.log". 
> java.lang.IllegalArgumentException: object is not an instance of declaring class
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:585)
>     at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.java:205)
>     at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.java:164)
>     at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:129)
>     at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
>     at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
> 
> Could you please someone tell me how to fix this issue ?
> 
> Regards
> Prathib Kumar
> 

-- 
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