I'm having a problem using log4j with integrated tomcat. When I run tomcat within IDEA even though it's correctly copying my log4j.properties file to the compile directory prior to starting tomcat log4j doesn't seen to initialize itself nor does it start appending to my log file that I specified in my log4j.properties file.
It's also definitely copying my log4j-1.2.8.jar file and my commons-logging-1.0.2.jar file to the WEB-INF/lib directory. My log4j.properties file is also being copied to WEB-INF/classes. But still, no logging statements show up in the console in IDEA nor do any statements get appended to my log file.
I'm using JDK 1.5, IDEA 5.0.2 on a Mac, Tomcat 5.5.12. When I compile and run my web app outside of IDEA it works fine with tomcat and the logging does work as expected.
Any help would be appreciated.