tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jørgen Nørgaard <...@napolinet.dk>
Subject Tomcat 5.5.9 and log4j problem
Date Wed, 06 Jul 2005 20:18:43 GMT
Hello,

I have installed java 1.5.0_04 and tomcat 5.5.9 on Fedora FC4 64 bit  
machine and followed, I thought, the instructions on http:// 
jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html.


Yet I get:
log4j:WARN No appenders could be found for logger  
(org.apache.catalina.startup.ClassLoaderFactory).
log4j:WARN Please initialize the log4j system properly.

in catalina.out. And no log file otherwise.


Any ideas what I am doing wrong?


Excerpts of setup:

ls /opt/jakarta-tomcat-5.5.9/common/classes:
log4j.properties  logging.properties

ls /opt/jakarta-tomcat-5.5.9/common/lib:
log4j-1.2.11.jar


And /opt/jakarta-tomcat-5.5.9/common/classes/log4j.properties is  
(copied from the website):
log4j.rootLogger=debug, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${catalina.home}/logs/tomcat.log
log4j.appender.R.MaxFileSize=10MB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
log4j.logger.org.apache.catalina=DEBUG, R



-- 
Hilsen
/jørgen nørgaard
e-mail: jnp@napolinet.dk | Phone: +45 2627 3769
http://napolinet.dk/
                                         |\      _,,,---,,_
                                         /,`.-'`'    -.  ;-;;,_
                                         |,4-  ) )-,_. ,\ (  `'-'
                                        '---''(_/--'  `-'\_)



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message