-->
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: java.lang.NoClassDefFoundError
PostPosted: Fri Jun 27, 2008 7:02 am 
Newbie

Joined: Fri Jun 27, 2008 6:56 am
Posts: 1
Location: delhi
Hi All,
I am getting
java.lang.NoClassDefFoundError at net.sf.hibernate.cfg.Configuration.buildSessionFactory( Configuration.java:627 )

while starting jboss.......
Please assist me......


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 27, 2008 9:43 am 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
Make sure all of your Hibernate related files are on the classpath of the ClassLoader that invokes the Configuration object.

How have you packaged your Hibernate code? Where are all of your Hibernate related libraries? Putting these files in the lib directory isn't always enough, especially if your data persistence code is within a self-contained jar file.

_________________
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.