I'm having problems after upgrading my hibernate and annotations libraries. My app used to work with hibernate-3.1beta3 and annotations-3.1beta5. But since I upgraded to hibernate-3.1rc3 and annotations-3.1beta6 I'm getting the attached exception. This is still true, even if I downgrade hibernate to 3.1rc1 (which is named as compatible on the website
http://www.hibernate.org/247.html)
Any suggestions?
Hibernate version:
3.1rc1 or 3.1rc3
Mapping documents:
annotations-3.1beta5 or 3.1beta6
Code between sessionFactory.openSession() and session.close():
haven't reached that point
Full stack trace of any exception that occurs:
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;Ljava/util/List;)V
at org.hibernate.cfg.ExtendedMappings.<init>(ExtendedMappings.java:50)
at org.hibernate.cfg.AnnotationConfiguration.createExtendedMappings(AnnotationConfiguration.java:126)
at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:253)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:191)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1145)
at org.fortha.persistence.hibernate.SessionProvider.<init>(SessionProvider.java:12)
at test.org.fortha.persistence.hibernate.ResourceManagerTest.setUp(ResourceManagerTest.java:19)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Name and version of the database you are using:
hsqldb-1.8.0.2
The generated SQL (show_sql=true):
didn't get there
Debug level Hibernate log excerpt:
none