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即可。