I'm trying to use Cactus and log4j. Previous to installing Cactus on
Tomcat, I was putting log4j.properties in my webapp context, under WEB-INF/classes. Worked fine. Now, I've installed Cactus, and in order to get it to work appropriately, I ended up having to put log4j.jar within Tomcat's common/lib directory, rather than in my context's lib area. Now when I start Tomcat, I get a warning message that says: "log4j:WARN Please initialize the log4j system properly". Also, my settings from log4j.properties no longer work. (By no longer work, I mean that they no longer work across my application, not just in my Cactus
test classes. I have a
servlet that was previously able to log which is no longer logging per the properties in my log4j.properties file.)
Has anyone wrestled with this? Theoretically, I could setting the log4j.configuration command line option for Tomcat, but then my log4j properties would apply to all webapplications, rather than just my context (right?). I'd like to just deploy my .properties file within the context of my application.
[ January 02, 2003: Message edited by: Tina Coleman ]