Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88002 - Stopping Tomcat-5.0.28-r2 gives Log4J Warning
Summary: Stopping Tomcat-5.0.28-r2 gives Log4J Warning
Status: RESOLVED DUPLICATE of bug 103925
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-04 23:44 UTC by MrSpock
Modified: 2005-09-14 15:03 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MrSpock 2005-04-04 23:44:51 UTC
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.
Comment 1 Jan Brinkmann (RETIRED) gentoo-dev 2005-04-07 07:15:33 UTC
please provide a more verbose output, i.e. the complete output of the shoutdown sequense. thanks
Comment 2 Piojo 2005-04-07 10:42:02 UTC
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 ]
Comment 3 Mike Salvaggio 2005-04-18 16:20:59 UTC
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)
Comment 4 Gertjan Zwartjes 2005-06-11 05:08:09 UTC
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?
Comment 5 Santiago Gala 2005-07-27 10:22:21 UTC
Can confirm that this solution fixes it. I put the log4j.properties in
/etc/tomcat-5/default (it is a configuration file, after all)
Comment 6 Gustavo Felisberto (RETIRED) gentoo-dev 2005-09-14 15:03:28 UTC
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 ***