[#1150] - Hibernate Data Source with Annotations

Category:
Bug report
Priority:
High
Status:
Assigned
Project: Severity:
Major
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

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".)

tw's picture
tw
1
Joined: Sep 25 2007 - 3:38am
Last seen: 15 years 8 months ago

2 Comments:

#1

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.

#2

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".

Regards,
Tobias

Feedback
randomness