-->
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.  [ 2 posts ] 
Author Message
 Post subject: Insufficient error messages during booting Hibernate~
PostPosted: Fri Jul 30, 2010 2:23 am 
Newbie

Joined: Sat Jan 20, 2007 10:20 pm
Posts: 6
I am using JPA under Hibernate for the first time. Contrary to native Hibernate, I find that error messages are not printed during booting (loading of configuration files...etc). I use the log4j logger with full display of messages from level TRACE on down, which should display all types of message. I get a huge list of trace and debug messages but because of some error in my setup, an exception is thrown. The frustrating thing is that the last error message is not displayed by my logger (log4j) so I don't really know what caused the exception that I need to fix. So I am left guessing about what's wrong, which is a huge expense of my time.

Is that normal? Is there a way to find out exactly what caused the exception?

Any help would be appreciated!


Top
 Profile  
 
 Post subject: Re: Insufficient error messages during booting Hibernate~
PostPosted: Fri Jul 30, 2010 12:19 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
you might have something wrong in the logger configuration.
Any recent hibernate version (>=3.3.0) uses slf4j, did you add the implementation to provide the bridge to log4j ?
(slf4j is an adaptor, so that people can use the logging library they prefer - but you need to choose an implementation and drop it in your classpath)

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.