org/springframework/dao/support/PersistenceExceptionTranslator异常

原创 2011年01月08日 00:34:00

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'us': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'u': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean] for bean with name 'springSf' defined in class path resource [applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/dao/support/PersistenceExceptionTranslator

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'u': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean] for bean with name 'springSf' defined in class path resource [applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/dao/support/PersistenceExceptionTranslator

Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean] for bean with name 'springSf' defined in class path resource [applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/dao/support/PersistenceExceptionTranslator

Caused by: java.lang.NoClassDefFoundError: org/springframework/dao/support/PersistenceExceptionTranslator

java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

Caused by: java.lang.ClassNotFoundException: org.springframework.dao.support.PersistenceExceptionTranslator

 

这个异常是由于缺少spring-dao.jar所引起的,在spring3.0.4中没有这个包,所以在网上下载个spring-dao.jar包就可以了。

版权声明:本文为博主原创文章,未经博主允许不得转载。

缺少jar包而导致报的错

有可能不是都适用,仅做参考 异常1:java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory 缺少包com...
  • ironxue
  • ironxue
  • 2015年03月13日 10:54
  • 1691

提示:找不到 org/springframework/dao/support/PersistenceExceptionTranslator

做SSH集成的时候,提示:找不到 org/springframework/dao/support/PersistenceExceptionTranslator,原来是缺少 缺少org.springfr...

找不到 org/springframework/dao/support/PersistenceExceptionTranslator

如果用的spring2  则原因是缺少spring-dao.jar   如果用的是spring3(我就栽这儿了) 则原因是缺少org.springframework.transaction-3.0...
  • dqsweet
  • dqsweet
  • 2012年07月27日 19:08
  • 11052

spring3 常见异常解决

以下异常使用的是spring是3.1.1,是我自己学习中遇到的错误笔记,有可能不是都适用,仅做参考 异常1:java.lang.NoClassDefFoundError: org/apache/co...
  • sjzs5590
  • sjzs5590
  • 2012年03月13日 14:52
  • 17416

java.lang.NoClassDefFoundError: org/springframework/dao/support/PersistenceExceptionTranslator

异常2:java.lang.NoClassDefFoundError: org/springframework/dao/support/PersistenceExceptionTranslator ...

java.lang.NoClassDefFoundError: org/springframework/dao/support/PersistenceE解决方法

笔者是使用spring4.0时,报的错误: 原因是没有引入spring-tx-4.0.0.RELEASE.jar包,將spring-tx-4.0.0.RELEASE.jar添加到build path...

java.lang.NoClassDefFoundError: org/springframework/dao/support/DaoSupport

缺少:org.springframework.transaction-3.0.5.RELEASE.jar
  • Truong
  • Truong
  • 2013年12月15日 20:55
  • 22126

hibernate异常:org.springframework.dao.InvalidDataAccessApiUsageException解决办法

org.springframework.dao.InvalidDataAccessApiUsageException: object references an unsaved transient i...

周报9.19-9.25异常org.springframework.dao.InvalidDataAccessApiUsageException的处理

org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:org/springframework/dao/support/PersistenceExceptionTranslator异常
举报原因:
原因补充:

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