This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes log4j:ERROR RollingFileAppender not assignable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "log4j:ERROR RollingFileAppender not assignable" Watch "log4j:ERROR RollingFileAppender not assignable" New topic

log4j:ERROR RollingFileAppender not assignable

Theo van Loon
Ranch Hand

Joined: Feb 04, 2004
Posts: 71
Hello all,

i configured log4j in tomcat 5.0.28 for internal server logging, but however is receive the following error message in the console :

log4j:ERROR A "org.apache.log4j.RollingFileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.

I have the properties file in the folder :

i have the following jars in the ..\jakarta-tomcat-5.0.28\common\lib :
* commons-logging.jar
* log4j-1.2.9.jar

My configuration file looks like this :

log4j.rootCategory=WARN, R
log4j.appender.R.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss,SSS} %p %t %c - %m%n[Catalina].[localhost]=ERRO R, R

What could be the problem?

Thanks a lot!!
I agree. Here's the link:
subject: log4j:ERROR RollingFileAppender not assignable
It's not a secret anymore!