Versions Compared

Key

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

...

Now that the files and configs are in place, we just need to load the Log4j JAR's at startup. We can do that by adding the following line to the setenv.sh file in the tomcat/bin directory:

Code Block
languagebash
CLASSPATH=$CATALINA_HOME/log4j2/lib/*:$CATALINA_HOME/log4j2/conf

For Windows, you can add this line to the "Java Classpath" text field in the "Java" tab of the Lucee Tomcat Service Control.


As an example, my setenv.sh file now looks like this:

...