my dog learned polymorphism
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

Tomcat, Hibernate and log4j issue

Pablo M�ller
Ranch Hand

Joined: Dec 12, 2006
Posts: 63
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 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. is the src folder, so it gets deployed inside WEB-INF/classes
Thanks a lot.

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

Joined: Jan 10, 2002
Posts: 63862

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] [About Bear] [Books by Bear]
Pablo M�ller
Ranch Hand

Joined: Dec 12, 2006
Posts: 63
Thanks Bear, that worked ok!!
I agree. Here's the link:
subject: Tomcat, Hibernate and log4j issue
It's not a secret anymore!