//Hi hiberante-developers, I don't understand exactly what the statement "*/Bundled with Hibernate Core as of 3.5.x" /*/(see below/) means, but I'd like to point out that there are several* *incompatibilities between hiberante3.jar (3.5beta2) and hibernate-annotations.jar + hibernate-commons-annotations.jar (3.4.0GA). This because of overlapping classes with different signature (please see exceptions below) The environment with 3.5beta2 works correctly only if in the classpath hiberante3.jar preceeds the other 2 jars. Please ignore this post in case the problem is already known
best regards G.D. /Snippet of?/ https://www.hibernate.org/6.html Hibernate Annotations 3.4.0 GA 20.08.2008 Production / / */Bundled with Hibernate Core as of 3.5.x/* -------------------------------------------------------------------------------------------------------------------- Classpath sequence:?? hibernate-annotations.jar:hibernate-commons-annotations.jar:hibernate3.jar ???? [exec] [hibernatetool] Executing Hibernate Tool with a JPA Configuration ???? [exec] [hibernatetool] 1. task: hbm2ddl (Generates database schema) ???? [exec] [hibernatetool] SLF4J: This version of SLF4J requires log4j version 1.2.12 or later. See also http://www.slf4j.org/codes.html#log4j_version ???? [exec] [hibernatetool] EMMA: collecting runtime coverage data ... ???? [exec] [hibernatetool] An exception occurred while running exporter #2:hbm2ddl (Generates database schema) ???? [exec] [hibernatetool] To get the full stack trace run ant with -verbose ???? [exec] [hibernatetool] Problems in creating a configuration for JPA. Have you remembered to add hibernate EntityManager jars to the classpath ? ???? [exec] [hibernatetool] java.lang.reflect.InvocationTargetException ???? [exec] [hibernatetool] *java.lang.IncompatibleClassChangeError: class org.hibernate.cfg.ExtendedMappings has interface org.hibernate.cfg.Mappings as super class* ------------------------------------------------------------------------------------------------------------------------ Classpath sequence: hibernate-commons-annotations.jar:hibernate3.jar:hibernate-annotations.jar ???? [exec] [hibernatetool] Executing Hibernate Tool with a JPA Configuration ???? [exec] [hibernatetool] 1. task: hbm2ddl (Generates database schema) ???? [exec] [hibernatetool] SLF4J: This version of SLF4J requires log4j version 1.2.12 or later. See also http://www.slf4j.org/codes.html#log4j_version ???? [exec] [hibernatetool] An exception occurred while running exporter #2:hbm2ddl (Generates database schema) ???? [exec] [hibernatetool] To get the full stack trace run ant with -verbose ???? [exec] [hibernatetool] Problems in creating a configuration for JPA. Have you remembered to add hibernate EntityManager jars to the classpath ? ???? [exec] [hibernatetool] java.lang.ExceptionInInitializerError ???? [exec] [hibernatetool] *java.lang.ClassCastException: org.hibernate.annotations.common.reflection.java.JavaReflectionManager cannot be cast to org.hibernate.annotations.common.reflection.MetadataProviderInjector *----------------------------------------------------------------------------------------------------------------------------* *Classpath sequence:? hibernate3.jar:hibernate-annotations.jar:hibernate-commons-annotations.jar ???????hibernatetool* *hbm2ddl* OK* _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev