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

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

相关文章推荐

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...

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...

java.lang.NoClassDefFoundError: org/springframework/beans/factory/support/DefaultListableBeanFactory

1、错误描述java.lang.NoClassDefFoundError: org/springframework/beans/factory/support/DefaultListableBeanF...

org.springframework.orm.hibernate3.support.OpenSessionInViewFilter详解

假设在你的应用中Hibernate是通过spring 来管理它的session.如果在你的应用中没有使用OpenSessionInViewFilter或者 OpenSessionInViewInter...

Spring中org.springframework.beans.factory.support.DefaultListableBeanFactory.<clinit>解决方法.

【原创文章,转载请注明出处】 刚学Spring,配置上就花了不少时间. 首先给Eclipse EE 装了一个Spring IDE 然后下载了Spring framework 3.0.6 http...

java.lang.NoSuchMethodError: org.springframework.beans.factory.support.RootBeanDefinition.<init>

在公司的需求下,需要在MAVEN项目上整合一个基于WEBService的REST风格的配置,因为有现成的老项目,直接就copy过来了,但是启动的时候报错,如下: 七月 17, 2017 4:13:14...

Caused by: java.lang.NullPointerException at org.springframework.beans.factory.support.DefaultLis

刚学Spring,配置上就花了不少时间. 首先给Eclipse EE 装了一个Spring IDE 然后下载了Spring framework 3.0.6 http://www.sprin...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

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