https://bugzilla.redhat.com/show_bug.cgi?id=1236297
Bug ID: 1236297
Summary: log4j not working
Product: Fedora
Version: 22
Component: tomcat
Severity: low
Assignee: ivan.afonichev(a)gmail.com
Reporter: edwardquick(a)hotmail.com
QA Contact: extras-qa(a)fedoraproject.org
CC: alee(a)redhat.com, ivan.afonichev(a)gmail.com,
java-sig-commits(a)lists.fedoraproject.org,
krzysztof.daniel(a)gmail.com, me(a)coolsvap.net
Description of problem:
After configuring tomcat to work with log4j, there are no logs.
Version-Release number of selected component (if applicable):
tomcat-7.0.59-4.fc22.noarch
tomcat-log4j-7.0.59-4.fc22.noarch
How reproducible:
Always
Steps to Reproduce:
1. dnf install tomcat tomcat-log4j
2. cp /etc/tomcat/log4j.properties /usr/share/tomcat/lib/log4j.properties
3. cp /usr/share/java/tomcat/log4j.jar /usr/share/tomcat/lib
4. echo "LOGGING_PROPERTIES=/usr/share/tomcat/lib/log4j.properties" >
/etc/tomcat/tomcat.conf
5. systemctl start tomcat
Actual results:
tomcat.log does not exist in /var/log/tomcat
Expected results:
tomcat.log should exist in /var/log/tomcat with debug logging
Additional info:
I followed the information at
https://tomcat.apache.org/tomcat-7.0-doc/logging.html#Using_Log4j and got this
to work by replacing tomcat-juli.jar in /usr/share/tomcat/bin and adding
tomcat-juli-adapaters.jar to /usr/share/tomcat/lib
Here is the tomcat process I ran
[root@fedora22 lib]# ps -ef | grep java
tomcat 4128 31665 4 12:54 pts/0 00:00:02 /usr/lib/jvm/jre/bin/java
-classpath
/usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/lib/java/commons-daemon.jar
-Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat
-Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat/temp
-Djava.util.logging.config.file=/usr/share/tomcat/lib/log4j.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
org.apache.catalina.startup.Bootstrap start
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=52EFloyjfz&a=cc_unsubscribe