• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NoClassDefFoundError: org/dom4j/Attribute ??

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am learning Hibernate, I have this error below. It is not classpath problem. and I have dom4j.jar in the classpath. I don't know why ?

 
james edwin
Ranch Hand
Posts: 393
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try setting these jars in Classpath and check ..

hibernate2.jar
dom4j.jar
ehcache-0.9.jar
cglib-full-2.0.2.jar
commons-collections.jar
xml-apis.jar
jta.jar


Because when i started learning,i remember i set the above files in classpath.

May be it works for you too !!!
[ September 17, 2004: Message edited by: james edwin ]
 
Eric Lemaitre
Ranch Hand
Posts: 538
Eclipse IDE Hibernate Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !

Beware, "Class Not Found ... class" really means this class is not found in CLASSPATH, but "NoClassDefFoundError ... class" means this class lacks definition for one of its import. So better uncompile this class (JAD or anything, and look at the "imports" for the culprit.

Best regards.
 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I unzip the dom4j.jar, I do see the class inside.

There is this error when I want to Schemaexport the sql and init the database. I don't know why.

Thanks
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic