随笔 - 0, 文章 - 264, 评论 - 170, 引用 - 0
数据加载中……

java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor

Spring3集成JPA,在添加声明式事务管理后,启动TOMCAT,报错:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator#0' defined in class path resource [spring/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor
---
---
---
Caused by: java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor

解决办法:

添加spring所信赖的包。如果你下载的版本没有包含信赖的包,请下载前一个版本带信赖的包,然后拷贝缺少的jar,加入你的classpath即可。

posted on 2010-12-05 23:23 小一败涂地 阅读(7799) 评论(0)  编辑  收藏 所属分类: spring相关


只有注册用户登录后才能发表评论。


网站导航: