• 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

tomcat_5 and application logging.

 
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI!
Well, I have run into a wierd problem.
When I copy the commons-logging.jar in my webapp/web-inf/lib, then tomcat complains that there is no log4j implementation and logs everything into my <application>.log file. So I get all the stuff that is going on in Tomcat, with my own application logs.
But, when I copy the commons-logging.jar and place it under common/lib. then I no longer get this error. But I get another one, saying a parsing exception with struts-logic.tld and all the other tlds, that I have under web-inf/tlds (as I have configured).
Any clues to what I am mising in the configuration?
Cheers
Lupo
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the exact location of commons-logging.jar is one of those 'archane magic' things, and it's bitten some very compentent people in the butt.
You might be running afoul of a very nasty problem with commons-logging, log4j, and the tomcat classloaders.

for example:
http://www.qos.ch/logging/thinkAgain.html
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmm... just found this.
http://www.jroller.com/page/gstamp/20040308#commons_logging1
 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey! Thanks mike for the quick replies.
Well, unfortunately, they dont seem to quite address my problem at the moment.
I wonder if there is a dependency between commons-logging and SAX parser that is loaded by tomcat.
 
reply
    Bookmark Topic Watch Topic
  • New Topic