Hi Ceki,

Thanks for ur reply.

basically we have 3 different applications and each is using different versions 
of log4j. rest 2 applications are using log4j1.1.3, So they dont have a problem 
but our application is using 1.2.13.

But is this exception is expected ?

Regards
Prathib Kumar

Ceki Gulcu <[EMAIL PROTECTED]> wrote: 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



       
---------------------------------
 Why delete messages? Unlimited storage is just a click away.

Reply via email to