By default, maven will pull your resources from /src/main/resources folder and put it in web-app/WEB-INF/classes folder. So for web based project the default location of lo4j.properties is /src/main/resources folder.
By default, maven will pull your resources from /src/main/resources folder and put it in web-app/WEB-INF/classes folder. So for web based project the default location of lo4j.properties is /src/main/resources folder.
I only keep a very simple default log4j.properties in the resources folder. I use a ServletContextListener to load up a different log4j.xml that is external to the project and loaded in there. If the external log4j.xml does not exist, I print out a big warning message and the just the log4j.properties.
Also, make sure that your ServletContextListener is the first listener too.
Interesting!