You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jørgen Nørgaard <jn...@napolinet.dk> on 2005/07/06 22:18:43 UTC
Tomcat 5.5.9 and log4j problem
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- ) )-,_. ,\ ( `'-'
'---''(_/--' `-'\_)
Re: Tomcat 5.5.9 and log4j problem
Posted by Jørgen Nørgaard <jn...@napolinet.dk>.
In appears that bin/catalina.sh does not add these directories to the
initial classpath.
Therefore neither jar file, nor configuration is found during start.
Adding common/classes to classpath in catalina.sh and putting the jar
files to the jvm lib is one way to solve the problem.
Jørgen Nørgaard said:
> 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- ) )-,_. ,\ ( `'-'
> '---''(_/--' `-'\_)
>
>
>
--
Hilsen
/jørgen nørgaard
e-mail: jnp@napolinet.dk | Phone: +45 2627 3769
http://napolinet.dk/
|\ _,,,---,,_
/,`.-'`' -. ;-;;,_
|,4- ) )-,_. ,\ ( `'-'
'---''(_/--' `-'\_)
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org