aspose file tools
The moose likes Object Relational Mapping and the fly likes Hibernate  java.lang.ClassNotFoundException: javax.persistence.Cacheable Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Hibernate  java.lang.ClassNotFoundException: javax.persistence.Cacheable" Watch "Hibernate  java.lang.ClassNotFoundException: javax.persistence.Cacheable" New topic
Author

Hibernate java.lang.ClassNotFoundException: javax.persistence.Cacheable

David Mbura
Ranch Hand

Joined: Apr 06, 2010
Posts: 65
Hello guys
I am working on a basic application with Hibernate 3.5,i m using JPA Annotations.I use Eclipse and everything running on jdk 1.6_u21.
Jar files from Hibernate are as follows


Hibernate3.jar
antlr
commons-collections
dom4j
javaassist
jta
slf4j
cglib
hibernate-annotations
ejb3-persistence
hibernate-common-annotations
log4j
slf4j-log4j12

and i am getting this exception

Thank you in advance
dominic steward
Greenhorn

Joined: Sep 11, 2010
Posts: 1
I had same problem.
got it solved when i used hibernate-jpa-2.0-api-1.0.0.Final found at hibernate-distribution-3.5.3-Final\lib\jpa.
PS:i was using JPA (javax.persistence.Entity) annotation

This message was edited 1 time. Last update was at by dominic steward

David Mbura
Ranch Hand

Joined: Apr 06, 2010
Posts: 65
Thanks dominic, it worked,i appreciate it!
jatinkumar patel
Greenhorn

Joined: Apr 19, 2009
Posts: 23
Thanks Dominic it Helped.
Amri Firdaus
Greenhorn

Joined: Jan 28, 2010
Posts: 4
thanks Dominic...it helped n it realy worked
Vinicius Alves
Greenhorn

Joined: Dec 21, 2010
Posts: 14
thanks dominic , it worked perfectly !
Keertiraj Patil
Greenhorn

Joined: Dec 18, 2011
Posts: 1
Thanks Dominic. It worked for me.
 
 
subject: Hibernate java.lang.ClassNotFoundException: javax.persistence.Cacheable
 
developer file tools