关闭

org/springframework/dao/support/PersistenceExceptionTranslator异常

标签: exceptiondependenciesnestedclassbeanpath
3860人阅读 评论(0) 收藏 举报
分类:

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包就可以了。

0
0

猜你在找
【套餐】Hadoop生态系统零基础入门
【套餐】嵌入式Linux C编程基础
【套餐】2017软考系统集成项目——任铄
【套餐】Android 5.x顶级视频课程——李宁
【套餐】深度学习入门视频课程——唐宇迪
【直播】广义线性模型及其应用——李科
【直播】从0到1 区块链的概念到实践
【直播】计算机视觉原理及实战——屈教授
【直播】机器学习之凸优化——马博士
【直播】机器学习&数据挖掘7周实训--韦玮
查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:694249次
    • 积分:8066
    • 等级:
    • 排名:第2497名
    • 原创:152篇
    • 转载:17篇
    • 译文:1篇
    • 评论:138条
    最新评论