When trying to use the Hibernate Data Source, the following error is produced:
'An AnnotationConfiguration instance is required to use <mapping clazz="de.something.ClassName"/>'
(My hibernate.cfg.xml hasn't "class" with "zz".)
I am using Hibernate 3.2.5 GA with Hibernate Annotations 3.3.0 GA.
In what kind of way should the link help me? The problem isn\'t produced in my project (where I, I have to admit, work with Spring; the hibernate.cfg.xml is only for iReport because the Spring Hibernate Data Source doesn\'t work for me either there) - it is produced in iReport.
Sure. Like I said, this doesn\'t work either.
When I try to test this type of connection, I get this error: ""Error creating bean with name=\'sessionFactory\' defined in class path resource [databaseContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.FatalBeanException: Could not instantiate class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]; constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cfg/AnnotationConfiguration".