Context Resources are published to the Tomcat applications via JNDI. If your webapp(s) contain customized log4j configuration code, that code can do a JNDI lookup and use it as part of the controlling information.
Note that Tomcat itself does not use log4j for its own logging, it uses the Java util.logging package (JULI), unless you do a custom Tomcat build for log4j. Each webapp is totally responsible for its own logging, so whatever log package you use for a webapp is that webapp's own choice.
Although most of the Tomcat documentation is pretty good, the one place I found it lacking was that it failed to indicate these things clearly.
Being persecuted doesn't in any way prove your righteousness or your beliefs. Many people get persecuted because they are repugnant or annoying. Or just because they can be.
posted 6 years ago
Thanks for your reply.. I have solved the problem by specifying the system properties in ServletContextListener.
permaculture is largely about replacing oil with people. And one tiny ad: