-->
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: Hibernate3 Mapping Exception - Directory Structure Changes
PostPosted: Thu Jun 10, 2004 6:31 pm 
Newbie

Joined: Thu Jun 10, 2004 6:24 pm
Posts: 1
I just built the hibernate3.jar from CVS and I am using hibernate-tools.jar from version 2.1.2 from Source Forge. I am getting :

java.lang.NoClassDefFoundError: net/sf/hibernate/MappingException
at net.sf.hibernate.tool.hbm2java.Hbm2JavaTask.processFile(Hbm2JavaTask.
java:145)
at net.sf.hibernate.tool.hbm2java.Hbm2JavaTask.execute(Hbm2JavaTask.java
:95)

This is because the MappingException is now under org/hibernate/MappingException

Where do I get the latest hibernate-tools.jar that is compatible with Hibernate3. I have already tried this link for HibernateExt and it does not build the hibernate-tools.jar

http://cvs.sourceforge.net/viewcvs.py/h ... ernateExt/

Any help would be appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 10, 2004 6:35 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hbm2java is not complete for hibernate3 - yet.

Best solution at the moment is to use hbm2java with hibernate2.jar and just make it go crazy on hbm.xml files....it will work for most hbm.xml files - except if it uses new exotic hibernate3 features ;9

_________________
Max
Don't forget to rate


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.