https://bugzilla.redhat.com/show_bug.cgi?id=1741311
Bug ID: 1741311 Summary: classpath predefined Product: Fedora EPEL Version: epel7 Hardware: x86_64 OS: Linux Status: NEW Component: tomcat Assignee: ivan.afonichev@gmail.com Reporter: ssoto@blazent.com QA Contact: extras-qa@fedoraproject.org CC: alee@redhat.com, coolsvap@gmail.com, csutherl@redhat.com, ivan.afonichev@gmail.com, java-sig-commits@lists.fedoraproject.org, krzysztof.daniel@gmail.com Target Milestone: --- Classification: Fedora
Description of problem:
Inside /usr/libexec/tomcat/preamble the following is found.
CLASSPATH="${CLASSPATH}${CATALINA_HOME}/bin/bootstrap.jar" CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/bin/tomcat-juli.jar" CLASSPATH="${CLASSPATH}:$(build-classpath commons-daemon 2>/dev/null)"
by coding the tomcat-juli.jar to CATALINA_HOME instead of CATALINA_BASE which will default to CATALINA_HOME if not defined then you prevent the usage of using other types of logging specifically log4j for tomcat, when multiple catalina_base's are set.
From the documentation of tomcat: If you are running Tomcat with separate $CATALINA_HOME and $CATALINA_BASE and want to configure to use log4j in a single $CATALINA_BASE only:
Create $CATALINA_BASE/bin and $CATALINA_BASE/lib directories if they do not exist. Put log4j.jar and tomcat-juli-adapters.jar from "extras" into $CATALINA_BASE/lib Put tomcat-juli.jar from "extras" as $CATALINA_BASE/bin/tomcat-juli.jar
https://tomcat.apache.org/tomcat-8.0-doc/logging.html https://tomcat.apache.org/tomcat-7.0-doc/logging.html
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce: 1. Install tomcat 2. set a base in /var/lib/tomcats/ 3. create unit file for new base 4) start tomcat and view output
Actual results:
Expected results:
Additional info:
https://bugzilla.redhat.com/show_bug.cgi?id=1741311
Coty Sutherland csutherl@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|ivan.afonichev@gmail.com |csutherl@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1741311
Coty Sutherland csutherl@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(ssoto@blazent.com | |)
--- Comment #1 from Coty Sutherland csutherl@redhat.com --- There is no epel7 package for tomcat, so are you referring to the RHEL 7 package, or the Fedora one?
https://bugzilla.redhat.com/show_bug.cgi?id=1741311
ssoto@blazent.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(ssoto@blazent.com | |) |
--- Comment #2 from ssoto@blazent.com --- RHEL, apologies.
https://bugzilla.redhat.com/show_bug.cgi?id=1741311
Coty Sutherland csutherl@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Pool ID| |sst_middleware_rhel_7 Target Release|--- |7.9 Component|tomcat |tomcat Version|epel7 |7.7 Product|Fedora EPEL |Red Hat Enterprise Linux 7 Target Milestone|--- |rc QA Contact|extras-qa@fedoraproject.org |tomcat-qe@redhat.com
--- Comment #3 from Coty Sutherland csutherl@redhat.com --- No problem, I'll move it to the correct product so we can get it sorted out for you.
https://bugzilla.redhat.com/show_bug.cgi?id=1741311
--- Comment #5 from Coty Sutherland csutherl@redhat.com --- To resolve this issue, the classpath setting in the preamble:
CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/bin/tomcat-juli.jar"
should be updated to use CATALINA_BASE:
CLASSPATH="${CLASSPATH}:${CATALINA_BASE}/bin/tomcat-juli.jar"
This change will continue to work as normal (defaulting CATALINA_BASE back to CATALINA_HOME), unless you're using the named service in which case it will pick up tomcat-juli.jar from the ${CATALINA_BASE}/bin/ instead of ${CATALINA_HOME}/bin/.
https://bugzilla.redhat.com/show_bug.cgi?id=1741311
RHEL Program Management pm-rhel@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |WONTFIX Last Closed| |2020-04-05 20:03:08
--- Comment #6 from RHEL Program Management pm-rhel@redhat.com --- Quality Engineering Management has reviewed and declined this request. You may appeal this decision by reopening this request.
java-sig-commits@lists.fedoraproject.org