iReport ejbql connection
- by Nayan Wadekar
I want to create ejbql connection in iReport, i have added all the related jars.
Set the classpath to include the META-INF directory containing persistence.xml & jars.
On testing connection it shows nothing, but in console it prints "java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.ejb.event.EJB3PersistEventListener null". Jar containing this class I have already added.
persistence.xml content :
persistence-unit name="hrmsPU" transaction-type="JTA"
provider org.hibernate.ejb.HibernatePersistence provider
jta-data-source java:hrmsDS jta-data-source
persistence-unit