-->
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: Getting Error in hibernate Tutorial.....
PostPosted: Tue Oct 25, 2005 3:46 am 
Newbie

Joined: Tue Oct 25, 2005 1:40 am
Posts: 7
I am trying simple database application using hibernate. I ve successfully created & compiled all files & DESCRIPTORS FOR IT.
But during the client application it gives me error like-
=========
Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: org/dom4j
/DocumentException
Exception in thread "main" java.lang.ExceptionInInitializerError
at de.gloegl.road2hibernate.HibernateUtil.<clinit>(HibernateUtil.java:18
)
at de.gloegl.road2hibernate.EventManager.main(EventManager.java:11)
Caused by: java.lang.NoClassDefFoundError: org/dom4j/DocumentException
at de.gloegl.road2hibernate.HibernateUtil.<clinit>(HibernateUtil.java:14)
===================

Please help me to solve this......
Thanx in advance......
Pras


Top
 Profile  
 
 Post subject: Re: Getting Error in hibernate Tutorial.....
PostPosted: Tue Oct 25, 2005 4:27 am 
Newbie

Joined: Thu Oct 13, 2005 11:43 am
Posts: 11
tiwari_p_k wrote:
I am trying simple database application using hibernate. I ve successfully created & compiled all files & DESCRIPTORS FOR IT.
But during the client application it gives me error like-
=========
Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: org/dom4j
/DocumentException
Exception in thread "main" java.lang.ExceptionInInitializerError
at de.gloegl.road2hibernate.HibernateUtil.<clinit>(HibernateUtil.java:18
)
at de.gloegl.road2hibernate.EventManager.main(EventManager.java:11)
Caused by: java.lang.NoClassDefFoundError: org/dom4j/DocumentException
at de.gloegl.road2hibernate.HibernateUtil.<clinit>(HibernateUtil.java:14)
===================

Please help me to solve this......
Thanx in advance......
Pras


Make sure you have the dom4j.jar in your classpath. Also all the other needed jars should be there. Have a look at http://www.hibernate.org/hib_docs/v3/reference/en/html/tutorial.html

Chris

-----
Don't forget the credit system ;-)


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.