Update:

So, I had got it to work by putting the following code in catalina.bat.
Then based on the recommendations on this thread I removed it from
catalina.bat and created a setenv.bat with the exact same lines.

rem LOG4J config
set "CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\log4j2\lib\log4j-api-2.17.1.jar"
set "CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\log4j2\lib\log4j-core-2.17.1.jar"
set
"CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\log4j2\lib\log4j-appserver-2.17.1.jar"
set "CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\log4j2\conf"

Works like a charm from the command line but gets ignored when launched
as a windows service.

I could not find the syntax for adding things (like log4j) to the
classpath on tomcat9w, does anybody know what it is?


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org

Reply via email to