• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

log4j and Cactus

 
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic