Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tomcat_5 and application logging.

 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • 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
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic