-->
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 started with hibernate
PostPosted: Tue Apr 24, 2007 5:34 am 
Newbie

Joined: Tue Apr 24, 2007 5:19 am
Posts: 2
Hi,
I am trying to work on hibernate and I followed instructions given in hibernate site
http://www.hibernate.org/hib_docs/v3/re ... orial.html

I am getting exception at the time of building application using ant.
The exception is

C:\Java\Hibernate\hibernate-3.2\doc\tutorial>ant run -Daction=store
Buildfile: build.xml

clean:
[delete] Deleting directory C:\Java\Hibernate\hibernate-3.2\doc\tutorial\bin
[mkdir] Created dir: C:\Java\Hibernate\hibernate-3.2\doc\tutorial\bin

copy-resources:
[copy] Copying 12 files to C:\Java\Hibernate\hibernate-3.2\doc\tutorial\bin

compile:
[javac] Compiling 1 source file to C:\Java\Hibernate\hibernate-3.2\doc\tutorial\bin

run:
[java] Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: org/dom4j/DocumentException
[java] Exception in thread "main" java.lang.ExceptionInInitializerError
[java] at util.HibernateUtil.<clinit>(HibernateUtil.java:17)
[java] at events.EventManager.createAndStoreEvent(EventManager.java:43)
[java] at events.EventManager.main(EventManager.java:15)
[java] Caused by: java.lang.NoClassDefFoundError: org/dom4j/DocumentException
[java] at util.HibernateUtil.<clinit>(HibernateUtil.java:13)
[java] ... 2 more
[java] Java Result: 1


BUILD SUCCESSFUL
Total time: 2 seconds



I have copied hibernate3.jar file in classpath.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 24, 2007 9:12 am 
Expert
Expert

Joined: Tue Jul 11, 2006 10:21 am
Posts: 457
Location: Columbus, Ohio
You need the dependencies in addition to the hibernate3.jar file. There is an _README.txt in the lib directory of the Hibernate distribution which details the dependencies.


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.