aspose file tools*
The moose likes Other Open Source Projects and the fly likes EJBQL COnnection problem with Ireport 3.6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "EJBQL COnnection problem with Ireport 3.6" Watch "EJBQL COnnection problem with Ireport 3.6" New topic
Author

EJBQL COnnection problem with Ireport 3.6

Krishna Pandit
Greenhorn

Joined: Mar 23, 2008
Posts: 10
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

Joined: Jun 24, 2003
Posts: 3274
    
    5

What JAR does that missing class live in?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Krishna Pandit
Greenhorn

Joined: Mar 23, 2008
Posts: 10
it should be hibernate3.jar which i already included.

I hope i'm correct
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hmmmm, if it's included in the CLASSPATH then I'm not sure what could be wrong sorry.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJBQL COnnection problem with Ireport 3.6