https://bz.apache.org/bugzilla/show_bug.cgi?id=69584

--- Comment #5 from K <longhorns1...@gmail.com> ---
(In reply to Chuck Caldarale from comment #3)
> Mixing jars from different Tomcat versions (nearly 8 years apart!) is not
> supported. I'm rather surprised that Tomcat starts at all.

I am not actually mixing jars from older implementations.  I am replacing the
provided tomcat-juli implementation with a custom version that was based on an
older version of tomcat-juli.

Tomcat is designed to support replacing the tomcat JUL implementation.

To replace the tomcat logging implementation you need to apply a new logging
manager with LOGGING_MANAGER and logging config file with
CATALINA_LOGGING_CONFIG.  This is successfully done with that "start" command.

eval exec "\"$_RUNJDB\"" "\"$CATALINA_LOGGING_CONFIG\"" $LOGGING_MANAGER
"$JAVA_OPTS" "$CATALINA_OPTS" \
        -classpath "$CLASSPATH" \
        -sourcepath "$CATALINA_HOME"/../../java \
        -Dcatalina.base="$CATALINA_BASE" \
        -Dcatalina.home="$CATALINA_HOME" \
        -Djava.io.tmpdir="$CATALINA_TMPDIR" \
        org.apache.catalina.startup.Bootstrap "$@" start

but the "stop" command does not apply the CATALINA_LOGGING_CONFIG.

eval "\"$_RUNJAVA\"" $LOGGING_MANAGER "$JAVA_OPTS" \
    -classpath "\"$CLASSPATH\"" \
    -Dcatalina.base="\"$CATALINA_BASE\"" \
    -Dcatalina.home="\"$CATALINA_HOME\"" \
    -Djava.io.tmpdir="\"$CATALINA_TMPDIR\"" \
    org.apache.catalina.startup.Bootstrap "$@" stop

#   CATALINA_LOGGING_CONFIG (Optional) Override Tomcat's logging config file
#                   Example (all one line)
#                  
CATALINA_LOGGING_CONFIG="-Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties"
#
#   LOGGING_MANAGER (Optional) Override Tomcat's logging manager
#                   Example (all one line)
#                  
LOGGING_MANAGER="-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"

The system properties provided in these two environment variables should always
be provided together.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to