aspose file tools*
The moose likes Tomcat and the fly likes Tomcat, Hibernate and log4j  issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat, Hibernate and log4j  issue" Watch "Tomcat, Hibernate and log4j  issue" New topic
Author

Tomcat, Hibernate and log4j issue

Pablo M�ller
Ranch Hand

Joined: Dec 12, 2006
Posts: 63
Hi,
I'm not sure if this belongs to this forum or the hibernate one, but here it is:
I recently moved all the common libraries of my applications to the shared/lib folder of the tomcat (5.5.16). This includes hibernate and others (but not log4j). I have a log4j.properties in my application that sets the logging level for hibernate to WARN. But when I changed the location of the jars it started logging at INFO level and, because of this, it's taking a lot of time to deploy, not to mention all the unnecesary information I get, which makes it really hard to find the useful stuff.
I'm running tomcat from eclipse, to capture the stdout on the console. log4j.properties is the src folder, so it gets deployed inside WEB-INF/classes
Thanks a lot.
Pablo


2B || !2B
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61232
    
  66

I place the logging jars in common/lib and the properties file in common/classes.

This causes Tomcat to set up the logging prior to issuing its own logging messages.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Pablo M�ller
Ranch Hand

Joined: Dec 12, 2006
Posts: 63
Thanks Bear, that worked ok!!
 
 
subject: Tomcat, Hibernate and log4j issue