• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJBQL COnnection problem with Ireport 3.6

 
Krishna Pandit
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I'm using ireport3.6.0 to generate reports.
I added my persistence.xml, hibernate-annotations.jar, ejb3persistance.jar,hibernate-commons-annotations.jar, hibernate-intitymanager.jar, jta.jar to my class path.



When I try to create a datasource connection through ejbql, I dont get any success or error prompt. So when i check the log(in ireport)Ireport throws me the error

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)





Please help me..to sort out this problem
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What JAR does that missing class live in?
 
Krishna Pandit
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it should be hibernate3.jar which i already included.

I hope i'm correct
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmmm, if it's included in the CLASSPATH then I'm not sure what could be wrong sorry.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic