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(a)gmail.com
Reporter: ssoto(a)blazent.com
QA Contact: extras-qa(a)fedoraproject.org
CC: alee(a)redhat.com, coolsvap(a)gmail.com,
csutherl(a)redhat.com, ivan.afonichev(a)gmail.com,
java-sig-commits(a)lists.fedoraproject.org,
krzysztof.daniel(a)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:
--
You are receiving this mail because:
You are on the CC list for the bug.