From a91397789416a21149a413474d4aeb4372bd9cc7 Mon Sep 17 00:00:00 2001 From: Chad Redman Date: Fri, 21 Jan 2022 16:05:56 -0500 Subject: [PATCH] GRP-3724: log4j security problem (commit 2): Add JVM property to fall back to reading log4j.properties, even after Grouper upgrades to log4j2 --- container_files/tomee/bin/setenv.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container_files/tomee/bin/setenv.sh b/container_files/tomee/bin/setenv.sh index 603fc570..369d5441 100755 --- a/container_files/tomee/bin/setenv.sh +++ b/container_files/tomee/bin/setenv.sh @@ -1,4 +1,4 @@ CLASSPATH=/opt/tomee/bin/* #JAVA_OPTS="-Dlog4j.configurationFile=/opt/tomee/conf/log4j2.xml -DENV=$ENV -DUSERTOKEN=$USERTOKEN" -CATALINA_OPTS="-Xmx$GROUPER_MAX_MEMORY -XX:+UseG1GC -XX:+UseStringDeduplication -Dlog4j.configurationFile=/opt/tomee/conf/log4j2.xml -DENV=$ENV -DUSERTOKEN=$USERTOKEN -Dfile.encoding=UTF-8 $GROUPER_EXTRA_CATALINA_OPTS" +CATALINA_OPTS="-Xmx$GROUPER_MAX_MEMORY -XX:+UseG1GC -XX:+UseStringDeduplication -Dlog4j.configurationFile=/opt/tomee/conf/log4j2.xml -DENV=$ENV -DUSERTOKEN=$USERTOKEN -Dfile.encoding=UTF-8 -Dlog4j1.compatibility=true $GROUPER_EXTRA_CATALINA_OPTS" LOGGING_MANAGER=-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager