-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Error when using hibernate 3 jar
PostPosted: Wed Oct 21, 2009 4:37 pm 
Newbie

Joined: Wed Oct 21, 2009 4:32 pm
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.