Answering myself... it is as simple as putting all of those jars and
conf folder in the Java Classpath used to launch Tomcat, it ends up
showing inside of Tomcat too, so it ends up working fine even if the
configuration is a bit ugly.
On 1/10/2022 11:27 AM, Bruno Melloni wrote:
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
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org