-->
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.  [ 3 posts ] 
Author Message
 Post subject: Trying to generate POJO's using hbm2java and receive error
PostPosted: Tue Jul 11, 2006 4:45 pm 
Newbie

Joined: Mon Nov 21, 2005 11:18 pm
Posts: 6
I'm receiving the following error below when I try to generate my POJO's based off of my hbm.xml files. Not sure what 'version' it's trying to set and why but the hibernate version I'm using is 3.1.2 and the hibernate tools version I'm using is 3.1.0b4

Code:
Full stack trace of any exception that occurs:
Executing Hibernate Tool with a Standard Configuration
1. task: hbm2java (Generates a set of .java files)
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
/Users/lardo/development/CF/ems-2-0/build.xml:86: java.lang.IllegalStateException: 3.1.0.beta4 found when setting version



Thanks for any help.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 11, 2006 9:47 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
When using the tools use the version of hibernate that comes with the tools package (set the class path approrpriately). There is a strong dependency between them. Note: The output can be used with any H3+ version you choose.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 12, 2006 2:48 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
why don't you use a more recent version of the tools?

It has much better error handling, but it is still recommended to put a log4j.properties into the classpath to get any relevant information.

_________________
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.  [ 3 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.