I'm trying to set iReport to use Hibernate as EJBQL connection. I put this files in classpath:
Quote:
D:\Java\hibernate-3.2\hibernate3.jar
D:\Java\hibernate-entitymanager-3.3.1.GA\hibernate-entitymanager.jar
D:\Java\Jaybird-2.1.1JDK_1.5\jaybird-full-2.1.1.jar
D:\Java\hibernate-annotations-3.3.0.GA\lib\ejb3-persistence.jar
D:\Java\hibernate-annotations-3.3.0.GA\lib\hibernate-commons-annotations.jar
D:\Java\hibernate-annotations-3.3.0.GA\hibernate-annotations.jar
But when I test the connection I get this exception:
Quote:
java.lang.NoSuchMethodError: org.hibernate.cfg.AnnotationConfiguration.setEntityNotFoundDelegate(Lorg/hibernate/proxy/EntityNotFoundDelegate;)V
at org.hibernate.ejb.Ejb3Configuration.<init>(Ejb3Configuration.java:131)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:119)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
at com.jaspersoft.ireport.designer.connection.EJBQLConnection.getEntityManager(EJBQLConnection.java:138)
at com.jaspersoft.ireport.designer.connection.EJBQLConnection$1.run(EJBQLConnection.java:188)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
I look in the hibernate svn and the AnnotationConfiguration class really don't have the method called by Ejb3Configuration. Why this? How can I solve this?
The version of my files are:
Hibernate 3.2.6 GA
Annotations 3.3.0 GA
EntityManager 3.3.1 GA
Firebird 1.5.4
Thanks,