[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Trying to get JBoss and Hibernate to integrate
jaikiran
do-not-reply at jboss.com
Tue Jun 17 01:49:20 EDT 2008
For debugging, why not just print the stacktrace in the catch block of your hibernate util:
try {
|
| AnnotationConfiguration config = new AnnotationConfiguration();
| config.addAnnotatedClass( User.class );
| config.configure();
|
| sessionFactory = config.buildSessionFactory();
|
| } catch (Throwable ex) {
| ex.printStackTrace();
| // Log exception!
| throw new ExceptionInInitializerError(ex);
| }
That might show you the actual error.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158574#4158574
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158574
More information about the jboss-user
mailing list