https://bz.apache.org/bugzilla/show_bug.cgi?id=63567
Bug ID: 63567
Summary: catalina.sh fails to pass LOGGING_MANAGER to jvm
during stop
Product: Tomcat 8
Version: 8.5.41
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ----
If LOGGING_MANAGER is set (in setenv.sh) startup processing works correctly,
but during shutdown (catalina.sh stop) a number of errors are logged regarding
logging plugins failing to be created.
main ERROR Could not create plugin of type class
org.apache.logging.log4j.core.appender.FileAppender for element File:
java.lang.ClassCastException:
org.apache.logging.log4j.core.appender.FileManager$FactoryData cannot be cast
to
org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData
java.lang.ClassCastException:
org.apache.logging.log4j.core.appender.FileManager$FactoryData cannot be cast
to
org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData
Adding the LOGGING_MANAGER to the eval of the java runtime in the "stop" case
of catalina.sh resolves this.
Line 519 of catalina.sh
change
eval "\"$_RUNJAVA\"" $JAVA_OPTS \
-D$ENDORSED_PROP="\"$JAVA_ENDORSED_DIRS\"" \
-classpath "\"$CLASSPATH\"" \
-Dcatalina.base="\"$CATALINA_BASE\"" \
-Dcatalina.home="\"$CATALINA_HOME\"" \
-Djava.io.tmpdir="\"$CATALINA_TMPDIR\"" \
org.apache.catalina.startup.Bootstrap "$@" stop
to
eval "\"$_RUNJAVA\"" $LOGGING_MANAGER $JAVA_OPTS \
-D$ENDORSED_PROP="\"$JAVA_ENDORSED_DIRS\"" \
-classpath "\"$CLASSPATH\"" \
-Dcatalina.base="\"$CATALINA_BASE\"" \
-Dcatalina.home="\"$CATALINA_HOME\"" \
-Djava.io.tmpdir="\"$CATALINA_TMPDIR\"" \
org.apache.catalina.startup.Bootstrap "$@" stop
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]