-->
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.  [ 6 posts ] 
Author Message
 Post subject: NoSuchMethodError hbm2ddl.SchemaExport.setFormat
PostPosted: Mon Nov 14, 2005 1:40 am 
Newbie

Joined: Mon Nov 14, 2005 1:19 am
Posts: 2
Hibernate version:3.0

I am using Eclipse 3.1 (Lomboz Eclipse based IDE for J2EE Development Version: 1.0.0) for development. I have very successfully managed to use the reverse engineering aspects of the Eclipse Hibernate toolset. I have also successfully managed to generate java from hbm.xml files. However when I try to use 'hbm2ddl' things don't work. I have tried combinations of jar files that come as part of the Hibernate dist and indeed all of them to no avail. Thus far I have soured the web and the Hibernate site without success. Clearly I must be doing something wrong .... but what. Can anyone enlighten me ... please. I'm beginning to think my sanity is at stake here :-)

I get the following whenever I try to generate DDL:


java.lang.NoSuchMethodError: org.hibernate.tool.hbm2ddl.SchemaExport.setFormat(Z)Lorg/hibernate/tool/hbm2ddl/SchemaExport;
at org.hibernate.tool.ant.Hbm2DDLGeneratorTask.execute(Hbm2DDLGeneratorTask.java:46)
at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:122)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:142)
at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.parseBuildFile(InternalAntRunner.java:191)
at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:400)
at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)


Regards

Eric


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 14, 2005 9:00 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
use latest hibernate3.1 or simply just use the hibernate3.jar from the tools distribution when running the ant tasks.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 14, 2005 7:03 pm 
Newbie

Joined: Mon Nov 14, 2005 1:19 am
Posts: 2
Max,

Updated to the latest version and it works like a charm

Many thanks,

Eric


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 4:02 am 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
max wrote:
use the hibernate3.jar from the tools distribution


can't you just put this one in the pre-filled fields that show up when someone clicks on "New Topic" for the tools forum. really ;)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 4:33 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
nah i just love answering the same question over and over and over and over again ....

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 5:20 am 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
... from the guy w/ the most points on the forum. I see your strategy now ;-)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.