Hi all,

I have a problem running TC 7.0.92 with Log4J 1.2.17 and Java 11 when trying to load the config from ${catalina.base}/somedir/log4j.properties via server.loader=${catalina.base}/somedir in conf/catalina.properties.

It works with Java 9 and 10 and it also works when using the common.loader instead of server.loader. Setting -Dlog4j.debug shows, that log4j tries to load the files via the class loader but isn't able to:

Trying to find [log4j.xml] using java.net.URLClassLoader@c267ef4 class loader.
Trying to find [log4j.xml] using ClassLoader.getSystemResource().
Trying to find [log4j.properties] using java.net.URLClassLoader@c267ef4 class loader.
Trying to find [log4j.properties] using ClassLoader.getSystemResource().
Could not find resource: [null].
log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.Catalina).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

I suspect it might have to do with some module system change in JAVA 11, but I found nothing obvious. Adding "--illegal-access=debug" doesn't produce any output.

I'm using the log4j juli plus adapters. No problems using log4j 1.2 inside webapps directly.

Any ideas?

Regards,

Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to