-->
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.  [ 8 posts ] 
Author Message
 Post subject: Ant task hbm2dll not working
PostPosted: Thu Oct 20, 2005 2:35 pm 
Newbie

Joined: Mon Oct 17, 2005 10:30 pm
Posts: 6
Ant task hbm2dll is failing:

I get this error:
java.lang.NoSuchMethodError: org.hibernate.tool.hbm2ddl.SchemaExport.setFormat(Z)Lorg/hibernate/tool/hbm2ddl/SchemaExport

any ideas why, do I need to add hibernate.extensions to my classpath?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 20, 2005 2:36 pm 
Newbie

Joined: Mon Oct 17, 2005 10:30 pm
Posts: 6
I am using Hibernate 3.0.5, with hibernate tools 3.1.0 alpha5


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 20, 2005 2:41 pm 
Newbie

Joined: Mon Oct 17, 2005 10:30 pm
Posts: 6
Here is the output from the ant task before it breaks:

INFO: Mapping file: C:\eclipse\workspace\newsletter\src\com\guidance\domain\mappings\Wordtemp.hbm.xml
[hibernatetool] Oct 20, 2005 11:12:52 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
[hibernatetool] INFO: Mapping class: com.guidance.domain.mappings.Wordtemp -> wordtemp
[hibernatetool] Oct 20, 2005 11:12:52 AM org.hibernate.cfg.Configuration secondPassCompile
[hibernatetool] INFO: processing extends queue
[hibernatetool] Oct 20, 2005 11:12:52 AM org.hibernate.cfg.Configuration secondPassCompile
[hibernatetool] INFO: processing collection mappings
[hibernatetool] Oct 20, 2005 11:12:52 AM org.hibernate.cfg.Configuration secondPassCompile
[hibernatetool] INFO: processing association property references
[hibernatetool] Oct 20, 2005 11:12:52 AM org.hibernate.cfg.Configuration secondPassCompile
[hibernatetool] INFO: processing foreign key constraints
[hibernatetool] Oct 20, 2005 11:12:52 AM org.hibernate.dialect.Dialect <init>
[hibernatetool] INFO: Using dialect: org.hibernate.dialect.HSQLDialect
[hibernatetool] Oct 20, 2005 11:12:53 AM org.hibernate.cfg.Configuration secondPassCompile
[hibernatetool] INFO: processing extends queue
[hibernatetool] Oct 20, 2005 11:12:53 AM org.hibernate.cfg.Configuration secondPassCompile
[hibernatetool] INFO: processing collection mappings
[hibernatetool] Oct 20, 2005 11:12:53 AM org.hibernate.cfg.Configuration secondPassCompile
[hibernatetool] INFO: processing association property references
[hibernatetool] Oct 20, 2005 11:12:53 AM org.hibernate.cfg.Configuration secondPassCompile
[hibernatetool] INFO: processing foreign key constraints
[hibernatetool] Oct 20, 2005 11:12:54 AM org.hibernate.cfg.Configuration secondPassCompile
[hibernatetool] INFO: processing extends queue
[hibernatetool] Oct 20, 2005 11:12:54 AM org.hibernate.cfg.Configuration secondPassCompile
[hibernatetool] INFO: processing collection mappings
[hibernatetool] Oct 20, 2005 11:12:54 AM org.hibernate.cfg.Configuration secondPassCompile
[hibernatetool] INFO: processing association property references
[hibernatetool] Oct 20, 2005 11:12:54 AM org.hibernate.cfg.Configuration secondPassCompile
[hibernatetool] INFO: processing foreign key constraints
BUILD FAILED
java.lang.NoSuchMethodError: org.hibernate.tool.hbm2ddl.SchemaExport.setFormat(Z)Lorg/hibernate/tool/hbm2ddl/SchemaExport;


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 20, 2005 3:56 pm 
Expert
Expert

Joined: Wed Apr 06, 2005 5:03 pm
Posts: 273
Location: Salt Lake City, Utah, USA
That version of the tools requires Hibernate 3.1, and will not work when running with 3.0.5.

_________________
nathan


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 20, 2005 5:15 pm 
Newbie

Joined: Mon Oct 17, 2005 10:30 pm
Posts: 6
thanks for the help
I installed 3.1 and it works fine.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 20, 2005 5:34 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
please note that using the h3.1 with tools to generate and use mappings for 3.0.5 is perfectly ok.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Two hibernate3.jar files seems too much
PostPosted: Mon Oct 24, 2005 4:26 pm 
Newbie

Joined: Sun Sep 25, 2005 1:38 am
Posts: 1
Where can I find a stable version of hibernate tools that works with Hibernate 3.0?

Mantaining a separate beta version of the hibernate jar just for one single ant task isn't really practical.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 24, 2005 4:28 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
eh ? just use the stuff that comes with hibernate-tools. What is hard about that ?

if you want the 3.0 version then go get the alpha 1-3 release from sourceforge (but that I would not recommend)

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