• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

log4j:ERROR RollingFileAppender not assignable

 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 :
..\jakarta-tomcat-5.0.28\common\classes

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.Threshold=WARN
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=D:/java/jakarta-tomcat-5.0.28/logs/catalina.log
log4j.appender.R.MaxFileSize=1MB
log4j.appender.R.MaxBackupIndex=5
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss,SSS} %p %t %c - %m%n
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=ERRO R, R

What could be the problem?

Thanks a lot!!
 
Where does a nanny get ground to air missles? Protect this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic