diff --git a/Dockerfile b/Dockerfile index adab9025..81656947 100644 --- a/Dockerfile +++ b/Dockerfile @@ -95,9 +95,10 @@ COPY container_files/httpd/* /etc/httpd/conf.d/ COPY container_files/shibboleth/* /etc/shibboleth/ RUN cp /dev/null /etc/httpd/conf.d/ssl.conf RUN rm -f /opt/tomee/bin/log4j-* -COPY container_files/tier-support/log4j_fix/log4j-* /opt/tomee/bin/ +COPY container_files/tier-support/log4j_fix/tomeeBin/log4j-* /opt/tomee/bin/ RUN rm -f /opt/tomee/lib/slf4j-* -COPY container_files/tier-support/log4j_fix/slf4j-* /opt/tomee/lib/ +COPY container_files/tier-support/log4j_fix/tomeeLib/slf4j-* /opt/tomee/lib/ +COPY container_files/tier-support/log4j_fix/webinfLib/log4j-* /opt/grouper/grouperWebapp/WEB-INF/lib # this is to improve openshift diff --git a/container_files/tier-support/log4j_fix/log4j-api-2.17.1.jar b/container_files/tier-support/log4j_fix/tomeeBin/log4j-api-2.17.1.jar similarity index 100% rename from container_files/tier-support/log4j_fix/log4j-api-2.17.1.jar rename to container_files/tier-support/log4j_fix/tomeeBin/log4j-api-2.17.1.jar diff --git a/container_files/tier-support/log4j_fix/log4j-core-2.17.1.jar b/container_files/tier-support/log4j_fix/tomeeBin/log4j-core-2.17.1.jar similarity index 100% rename from container_files/tier-support/log4j_fix/log4j-core-2.17.1.jar rename to container_files/tier-support/log4j_fix/tomeeBin/log4j-core-2.17.1.jar diff --git a/container_files/tier-support/log4j_fix/log4j-jul-2.17.1.jar b/container_files/tier-support/log4j_fix/tomeeBin/log4j-jul-2.17.1.jar similarity index 100% rename from container_files/tier-support/log4j_fix/log4j-jul-2.17.1.jar rename to container_files/tier-support/log4j_fix/tomeeBin/log4j-jul-2.17.1.jar diff --git a/container_files/tier-support/log4j_fix/slf4j-api-1.7.32.jar b/container_files/tier-support/log4j_fix/tomeeLib/slf4j-api-1.7.32.jar similarity index 100% rename from container_files/tier-support/log4j_fix/slf4j-api-1.7.32.jar rename to container_files/tier-support/log4j_fix/tomeeLib/slf4j-api-1.7.32.jar diff --git a/container_files/tier-support/log4j_fix/slf4j-jdk14-1.7.32.jar b/container_files/tier-support/log4j_fix/tomeeLib/slf4j-jdk14-1.7.32.jar similarity index 100% rename from container_files/tier-support/log4j_fix/slf4j-jdk14-1.7.32.jar rename to container_files/tier-support/log4j_fix/tomeeLib/slf4j-jdk14-1.7.32.jar diff --git a/container_files/tier-support/log4j_fix/webinfLib/log4j-1.2-api-2.17.1.jar b/container_files/tier-support/log4j_fix/webinfLib/log4j-1.2-api-2.17.1.jar new file mode 100644 index 00000000..25320a46 Binary files /dev/null and b/container_files/tier-support/log4j_fix/webinfLib/log4j-1.2-api-2.17.1.jar differ diff --git a/container_files/usr-local-bin/librarySetupFilesTomcat.sh b/container_files/usr-local-bin/librarySetupFilesTomcat.sh index 5133a917..13263c00 100644 --- a/container_files/usr-local-bin/librarySetupFilesTomcat.sh +++ b/container_files/usr-local-bin/librarySetupFilesTomcat.sh @@ -1,7 +1,6 @@ #!/bin/bash setupFilesTomcat() { - setupFilesTomcat_loggingSlf4j setupFilesTomcat_turnOnAjp setupFilesTomcat_supervisor setupFilesTomcat_authn @@ -192,32 +191,6 @@ setupFilesTomcat_authn() { } -setupFilesTomcat_loggingSlf4j() { - - rm -f /opt/tomee/lib/slf4j-api*.jar /opt/tomee/lib/slf4j-jdk*.jar - returnCode=$? - echo "grouperContainer; INFO: (librarySetupFilesTomcat.sh-setupFilesTomcat_loggingSlf4j) rm -f /opt/tomee/lib/slf4j-api*.jar /opt/tomee/lib/slf4j-jdk*.jar , result: $returnCode" - if [ $returnCode != 0 ]; then exit $returnCode; fi - - cp /opt/grouper/grouperWebapp/WEB-INF/lib/slf4j-api-*.jar /opt/tomee/lib - returnCode=$? - echo "grouperContainer; INFO: (librarySetupFilesTomcat.sh-setupFilesTomcat_loggingSlf4j) cp /opt/grouper/grouperWebapp/WEB-INF/lib/slf4j-api-*.jar /opt/tomee/lib , result: $returnCode" - if [ $returnCode != 0 ]; then exit $returnCode; fi - - # tomee uses the jdk one - cp /opt/grouper/grouperWebapp/WEB-INF/lib/slf4j-jdk*.jar /opt/tomee/lib - returnCode=$? - echo "grouperContainer; INFO: (librarySetupFilesTomcat.sh-setupFilesTomcat_loggingSlf4j) cp /opt/grouper/grouperWebapp/WEB-INF/lib/slf4j-jdk*.jar /opt/tomee/lib , result: $returnCode" - if [ $returnCode != 0 ]; then exit $returnCode; fi - - # grouper uses the log4j one - rm -f /opt/grouper/grouperWebapp/WEB-INF/lib/slf4j-jdk*.jar - returnCode=$? - echo "grouperContainer; INFO: (librarySetupFilesTomcat.sh-setupFilesTomcat_loggingSlf4j) rm -f /opt/grouper/grouperWebapp/WEB-INF/lib/slf4j-jdk*.jar , result: $returnCode" - if [ $returnCode != 0 ]; then exit $returnCode; fi - -} - setupFilesTomcat_supervisor() { if [ "$GROUPER_RUN_TOMEE" = "true" ] && [ "$GROUPER_RUN_TOMCAT_NOT_SUPERVISOR" != "true" ] @@ -273,7 +246,6 @@ setupFilesTomcat_unsetAll() { unset -f setupFilesTomcat_supervisor unset -f setupFilesTomcat_unsetAll unset -f setupFilesTomcat_accessLogs - unset -f setupFilesTomcat_loggingSlf4j unset -f setupFilesTomcat_sessionTimeout unset -f setupFilesTomcat_turnOnAjp @@ -289,7 +261,6 @@ setupFilesTomcat_exportAll() { export -f setupFilesTomcat_supervisor export -f setupFilesTomcat_unsetAll export -f setupFilesTomcat_accessLogs - export -f setupFilesTomcat_loggingSlf4j export -f setupFilesTomcat_sessionTimeout export -f setupFilesTomcat_turnOnAjp }