-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Tomcat isn't logging any exceptions
PostPosted: Mon Oct 31, 2005 3:40 pm 
Beginner
Beginner

Joined: Sat Oct 22, 2005 11:16 pm
Posts: 40
I'm using Hibernate 3.1rc and Apache Tomat 5.5.12. For whatever reason, when my application throws an exception, it isn't showing up in the Tomcat logs. I reinstalled Java and Tomcat, but it isn't helping. Does anyone have some ideas of what I should look at? I've never seen anything like this before.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 31, 2005 4:15 pm 
Beginner
Beginner

Joined: Sat Oct 22, 2005 11:16 pm
Posts: 40
Ah, problem solved. I had log4j in my classpath. Apache Commons logging was detecting that and therefore all the exceptions were being shipped off to log4j. log4j wasn't configured so it was basically dropping everything (as it should).

I took log4j out of the classpath and all is well.

Logging in Java is a mess, what with log4j, Commons Logging and Java's native logging. I forget who said it, but someone said, "The great thing about standards is there are so many to choose from."

Logging is great but the configuration of logging itself can be hard to debug.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 01, 2005 7:31 am 
Newbie

Joined: Tue Oct 25, 2005 12:28 pm
Posts: 18
Location: London
I agree with that. I always find problems configuring Log4J.

I think I'll write a skeleton project set-up where all the libs and configurations are written and logging is set up and classpath and ant and all the other gotchas are configured. Suppose the more generic I make it the more configuration will be required each time I use it in a new project. ;)

_________________
Cheers,
MikeR


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.