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: Error when executing buildSessionFactory()
PostPosted: Wed Aug 31, 2005 8:26 am 
Newbie

Joined: Wed Aug 24, 2005 12:07 pm
Posts: 17
Hi friends,

I am using hibernate v2.1.6 with tomcat .I have configured everything necessary for hibernate environment.
Here is the code snippet:::

Configuration config = new Configuration();
config.configure();
SessionFactory sessionFactory =config.buildSessionFactory();

The error occurs on the last line i.e
SessionFactory sessionFactory =config.buildSessionFactory();


On the console of exo-tomcat it gives me error:
java.lang.ExceptionInInitializerError

I m not getting any idea about this error.All suggestions are welcome.
Thanks in advance
Chirag.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 31, 2005 9:24 am 
Beginner
Beginner

Joined: Fri Feb 11, 2005 12:03 pm
Posts: 48
Location: Kiel, Germany
Hi Chirag,

are you sure all your mapping and configuration files are in the classpath?
Perhaps the stacktrace of the exception helps to solve the problem.


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.