This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!