Hi
I'm trying to generate a jasper report using ireport tool. I'm trying to make an ejbql connection in ireport which when trying to create the connection throws an error. After a research in ireport forum I found out it is related to hibernate. So I ran in here for a solution. Please help. The error i get is ..
Code:
java.lang.NoClassDefFoundError: org/hibernate/id/factory/IdentifierGeneratorFactory
at org.hibernate.ejb.Ejb3Configuration.<clinit>(Ejb3Configuration.java:107)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:124)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
at com.jaspersoft.ireport.designer.connection.EJBQLConnection.getEntityManager(EJBQLConnection.java:129)
at com.jaspersoft.ireport.designer.connection.EJBQLConnection$1.run(EJBQLConnection.java:179)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
[catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
The jar files that i have already specified in the class path are
hibernate3.jar,
ejb3-persistence.jar,
hibernate-entitymanager.jar,
hibernate-annotations.jar,
dom4j.jar,
hibernate-commons-annotations.jar,
hibernate-core.jar,
jta.jar,
slf4j-api.jar,
ehcache-1.1.jar,
javassist-3.4.GA.jar,
mysql-connector-java-5.1.10-bin.jar
Any one with an idea about this problem please help me out..
thank you