-->
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: Version mismatch
PostPosted: Sat Oct 08, 2005 10:00 pm 
Newbie

Joined: Sat Oct 08, 2005 9:50 pm
Posts: 1
Hibernate version:
3.1beta2
Hibernate Annotations version:
3.1beta4

I decided to swtch to java 5 and use annotations instead of hbm files. But when I try to build my project I got an error:

Code:
     [java] Initial SessionFactory creation failed java.lang.NoSuchMethodError: org.hibernate.cfg.Mappings.<init>(Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/List;Lorg/hibernate/cfg/NamingStrategy;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;)V
     [java] Exception in thread "main" java.lang.ExceptionInInitializerError
     [java] at gov.fnal.cms.daqkit.hh.HibernateUtil.<clinit>(Unknown Source)
     [java] at test.HHTest.main(Unknown Source)
     [java] Caused by: java.lang.NoSuchMethodError: org.hibernate.cfg.Mappings.<init>(Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/List;Lorg/hibernate/cfg/NamingStrategy;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;)V
     [java] at org.hibernate.cfg.ExtendedMappings.<init>(ExtendedMappings.java:48)
     [java] at org.hibernate.cfg.AnnotationConfiguration.createExtendedMappings(AnnotationConfiguration.java:131)
     [java] at org.hibernate.cfg.AnnotationConfiguration.addPackage(AnnotationConfiguration.java:121)
     [java] at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:316)
     [java] at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1336)
     [java] at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1318)
     [java] at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1294)
     [java] at org.hibernate.cfg.Configuration.configure(Configuration.java:1214)
     [java] at org.hibernate.cfg.Configuration.configure(Configuration.java:1200)
     [java] ... 2 more
     [java] Java Result: 1


Some version mismatch? I have Mappings class but with another signature.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 10, 2005 2:56 am 
Newbie

Joined: Tue Sep 13, 2005 10:57 pm
Posts: 10
Hi,
yes,
may be you wanna notice that hibernate release note news.
if want be simple, may be you could directly use release version in ejb-rcX


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 10, 2005 5:43 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
use the latest releases of H3 (rc1) and HA (beta6)

_________________
Emmanuel


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.