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@gmail.com Reporter: edwardquick@hotmail.com QA Contact: extras-qa@fedoraproject.org CC: alee@redhat.com, ivan.afonichev@gmail.com, java-sig-commits@lists.fedoraproject.org, krzysztof.daniel@gmail.com, me@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
https://bugzilla.redhat.com/show_bug.cgi?id=1236297
Edward edwardquick@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|log4j not working |log4j not working on tomcat
https://bugzilla.redhat.com/show_bug.cgi?id=1236297
--- Comment #1 from Ivan Afonichev ivan.afonichev@gmail.com --- It seems they are rebranding commons lib. <replacefilter token="org.apache.commons" value="org.apache.juli" />
I don't think it is acceptable for fedora to ship such duplicates.
https://bugzilla.redhat.com/show_bug.cgi?id=1236297
--- Comment #2 from Fedora Update System updates@fedoraproject.org --- tomcat-8.0.32-3.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-5e0bb2f21a
https://bugzilla.redhat.com/show_bug.cgi?id=1236297
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |MODIFIED
https://bugzilla.redhat.com/show_bug.cgi?id=1236297
--- Comment #3 from Fedora Update System updates@fedoraproject.org --- tomcat-7.0.68-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-62619c1bda
https://bugzilla.redhat.com/show_bug.cgi?id=1236297
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #4 from Fedora Update System updates@fedoraproject.org --- tomcat-8.0.32-3.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-5e0bb2f21a
https://bugzilla.redhat.com/show_bug.cgi?id=1236297
--- Comment #5 from Fedora Update System updates@fedoraproject.org --- tomcat-7.0.68-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-62619c1bda
https://bugzilla.redhat.com/show_bug.cgi?id=1236297
--- Comment #6 from Fedora Update System updates@fedoraproject.org --- tomcat-7.0.68-2.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-b19c75d748
https://bugzilla.redhat.com/show_bug.cgi?id=1236297
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |MODIFIED
https://bugzilla.redhat.com/show_bug.cgi?id=1236297
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #7 from Fedora Update System updates@fedoraproject.org --- tomcat-7.0.68-2.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-b19c75d748
https://bugzilla.redhat.com/show_bug.cgi?id=1236297
--- Comment #8 from Fedora Update System updates@fedoraproject.org --- tomcat-7.0.68-3.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-e6651efbaf
https://bugzilla.redhat.com/show_bug.cgi?id=1236297
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |MODIFIED
https://bugzilla.redhat.com/show_bug.cgi?id=1236297
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #9 from Fedora Update System updates@fedoraproject.org --- tomcat-7.0.68-3.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-e6651efbaf
https://bugzilla.redhat.com/show_bug.cgi?id=1236297
--- Comment #10 from Fedora Update System updates@fedoraproject.org --- tomcat-7.0.68-3.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1236297
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version| |tomcat-7.0.68-3.fc22 Resolution|--- |ERRATA Last Closed| |2016-03-25 18:22:19
java-sig-commits@lists.fedoraproject.org