• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

tomcat_5 and application logging.

 
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
 
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.
 
I'm not sure if I approve of this interruption. But this tiny ad checks out:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic