When stopping tomcat-5.0.28-r2 you get a Log4J warning about not beeing initialized correctly log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). log4j:WARN Please initialize the log4j system properly.
please provide a more verbose output, i.e. the complete output of the shoutdown sequense. thanks
This is the complete shutdown output: * Stopping Tomcat ... Using CATALINA_BASE: /var/lib/tomcat-5/default Using CATALINA_HOME: /usr/share/tomcat-5 Using CATALINA_TMPDIR: /var/tmp/tomcat-5/default Using JAVA_HOME: /opt/sun-jdk-1.4.2.08 log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). log4j:WARN Please initialize the log4j system properly. [ ok ]
I'm having the same problem. Here is the output from /var/log/tomcat-5/default/catalina.out This message is logged when the server starts. log4j:WARN Please initialize the log4j system properly. log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.Embedded)
Not sure if this is a solution or a workaround, but setting the location of the log4j.properties file in $CATALINA_OPTS fixed this for me: export CATALINA_OPTS=-Dlog4j.configuration=file:/usr/local/tomcat/conf/log4j.properties Found this on: http://masterdev.dyndns.dk/dev/10.htm with sample log4j.properties file included... Shouldn't the tomcat ebuild add this variable in /etc/env.d/21tomcat automatically?
Can confirm that this solution fixes it. I put the log4j.properties in /etc/tomcat-5/default (it is a configuration file, after all)
I'm marking this one as a DUP because altought it is older the other one had a more complete solution. *** This bug has been marked as a duplicate of 103925 ***