Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. In the Java application server home directory (on which Web Application Platform runs), go to the bin folder. For example, if you use Apache Tomcat, go to <tomcat_home>\bin.
  2. Using a plain text editor, create the setenv.bat file in that directory if it does not already exist.
  3. Copy and paste the following line to the setenv.bat file:

    Code Block
    set JAVA_OPTS=-Dlog4j.formatMsgNoLookups=true


  4. Save and close the file.
  5. Restart the Java application serverWeb Application Platform.


To configure setenv.bat files when the Web Application Platform is started as a service

...

  1. In the Java application server (on which Web Application Platform runs) home directory, go to the bin folder. For example, if you use Apache Tomcat, go to <tomcat_home>/bin.
  2. Using a plain text editor, create the setenv.sh file in that directory if it does not already exist.
  3. Copy and paste the following lines to the setenv.sh file:

    Code Block
    set JAVA_OPTS=-Dlog4j.formatMsgNoLookups=true



  4. Save and close the file.
  5. Restart the Java application serverWeb Application Platform.


Option 2 (more complex)

  1. Download the latest log4j 2.15.0 patched version .
  2. Replace all log4j 2.x jar files with their respective equivalents from the downloaded version 2.15.0 zip file while keeping the original file name.

...