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即可。
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 小一敗涂地 閱讀(7804) 評論(0) 編輯 收藏 所屬分類: spring相關