views:

135

answers:

1

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

A: 

Hi, i finnally made the ejbql connection and maybe mi awnser in this post can help you to do the conf here's thehttp://stackoverflow.com/questions/3230128/how-sets-the-jdni-properties-on-ireport/3248565#3248565

C'ya and good luck

Jorge