-->
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: Intial Session Factory Creation Failed.
PostPosted: Sat Jun 28, 2008 2:45 am 
Newbie

Joined: Sat Jun 28, 2008 2:34 am
Posts: 1
I am new to hibernate. I am using hibernate3. when I run my java desktop application the following error appears.

19:07:34,656 ERROR HibernateUtil:28 - Initial SessionFactory creation failed.
java.lang.NullPointerException
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1214)
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class jp.ac.nagaokaut.gii.lim.engine.util.HibernateUtil
at jp.ac.nagaokaut.gii.lim.engine.service.LIService.teachSourceDatabase(LIService.java:72)
....more

Please help me.

Thank you


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 30, 2008 11:03 am 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
Looks like this is as simple as a jar file that's missing. Is it working in development? Which package is this jar file in, and is it on the classpath of the classloader that is looking for it?

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


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.