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 ;-)