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.  [ 4 posts ] 
Author Message
 Post subject: Error with tutorial
PostPosted: Fri Sep 15, 2006 5:27 am 
Newbie

Joined: Fri Sep 15, 2006 5:11 am
Posts: 3
Hibernate version:3.2

Hi, I'm new to Hibernate, I'm trying to go through the tutorials on the site
http://www.hibernate.org/hib_docs/v3/reference/en/html/tutorial.html

I'm using eclipse, when runnin the build I get the following error:

Code:
[java] Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: org/dom4j/DocumentException
     [java] Exception in thread "main" java.lang.ExceptionInInitializerError
     [java] at util.HibernateUtil.<clinit>(Unknown Source)
     [java] at events.EventManager.createAndStoreEvent(Unknown Source)
     [java] at events.EventManager.main(Unknown Source)
     [java] Caused by: java.lang.NoClassDefFoundError: org/dom4j/DocumentException
     [java] ... 3 more
     [java] Java Result: 1


what am I doing wrong?

Thanks in advance
LeoBeer.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 15, 2006 6:17 am 
Beginner
Beginner

Joined: Mon Sep 04, 2006 7:18 am
Posts: 45
I think you have forgotten to import the hibernate libraries.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 19, 2006 4:57 pm 
Newbie

Joined: Fri Sep 15, 2006 5:11 am
Posts: 3
Thanks cash, I imported the file hibernate3.jar to the project and eclipse does not complain about hibernate.org... imports. I don't think this is the problem.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 20, 2006 9:00 am 
Newbie

Joined: Wed Sep 20, 2006 6:48 am
Posts: 4
LeoBeer wrote:
Thanks cash, I imported the file hibernate3.jar to the project and eclipse does not complain about hibernate.org... imports. I don't think this is the problem.

As you see, the classes of org.dom4j are missing - and if you look into the hibernate-distribution, there also have to bee some other jars beside hibernate.jar, because hibernate depends on these.
The missing one in this case is dom4j.jar...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.