java.lang.ClassNotFoundException: javax.persistence.Cacheable

转载 2015年11月18日 16:49:28

Exception in thread "main" java.lang.NoClassDefFoundError: javax/persistence/Cacheable

Caused by: java.lang.ClassNotFoundException: javax.persistence.Cacheable

错误原因,javax.persistence.Cacheable 是 JPA 2.0 规范中的东西!

需要加入hibernate-distribution-3.5.0-Final/lib/jpa目录下的hibernate-jpa-2.0-api-1.0.0.Final.jar

 

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/nokiaisacat/archive/2010/05/07/5566566.aspx

java.lang.ClassNotFoundException: javax.persistence.Cacheable

Exception in thread "main" java.lang.NoClassDefFoundError: javax/persistence/CacheableCaused by: jav...

java.lang.ClassNotFoundException: javax.persistence.EntityListeners异常解决

测试环境: eclipse4.4 hibernate3 MySQL5 今天在使用hibernate测试从配置文件读取信息创建表的时候出现如下异常: java.lang.NoC...

java.lang.ClassNotFoundException: javax.persistence.Entity

SEVERE: Exception sending context initialized event to listener instance of class org.springframewor...

java.lang.ClassNotFoundException: javax.persistence.Table

java.lang.ClassNotFoundException: javax.persistence.Table at org.apache.catalina.loader.WebappClass...

Caused by: java.lang.ClassNotFoundException: javax.persistence.Entity

1、错误描述 usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -hel...

Caused by: java.lang.NoClassDefFoundError: javax/persistence/EntityListeners

SSH整合时报下面的错误提示: org.springframework.beans.factory.BeanCreationException: Error creating bean with...

Caused by: java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getValidationMode(

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManage...

java.lang.NoSuchMethodError: javax.persistence.PersistenceContext.properties()

java.lang.NoSuchMethodError: javax.persistence.PersistenceContext.properties()[Ljavax/persistence/Pe...

java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z

在本地调试ok后,将web应用程序部署至服务器tomcat 8.5后无法启动,提示以下错误: 13-Sep-2016 05:46:25.848 SEVERE [https-jsse-nio-44...

启动tomcat报异常:java.lang.ClassNotFoundException: javax.xml.rpc.*

在myeclipse中启动tomcat服务器时报大量异常,并且为javax.xml.rpc包下的类找不到,如下所示:org.apache.catalina.startup.ContextConfig ...
  • wcblog
  • wcblog
  • 2015年09月16日 14:51
  • 4349
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:java.lang.ClassNotFoundException: javax.persistence.Cacheable
举报原因:
原因补充:

(最多只允许输入30个字)