关于 Spring3 报org.aopalliance.intercept.MethodInterceptor问题解决方法
运行环境:JDK1.6.0_22
Oracle10g
Spring3.0.4
报错信息如下:
Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [SpringConfig_Jdbc.xml]; nested exception is java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor
(省略)...
Caused by: java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor
出现了java.lang.NoClassDefFoundError:的错误,首先想到的就是少包,在网上搜搜了,果然是少了一个叫aopalliance.jar的jar包,下载这个包,加到路径里就OK了。
下载地址:
http://sourceforge.net/projects/aopalliance/files/
分享到:
相关推荐
com.springsource.org.aopalliance-1.0.0.jar 。Spring的AOP开发依赖,AOP联盟jar。
spring开发的各种包均包含在其中,比如com.springsource.org.aopalliance-1.0.0.jar等等
aopalliance-1.0.jar,org.springframework.aop-3.0.0.RELEASE.jar,org.springframework.jdbc-3.0.0.RELEASEorg.springframework.beans-3.0.0.RELEASE.jar等
用于 spring3 AOP 开发,在编写运行与aop有关的程序时需导入这个jar包,否则会出现异常。
nested exception is java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor 就是少了这个包
Spring的AOP需引用的3个JAR包:1.aspectjrt.jar 2.aspectjweaver.jar 3.com.springsource.org.aopalliance.jar
java ee 的jar,三大框架整合时必须要的jar包,希望帮助你
com.springsource.org.aspectj.weaver-1.6.8.RELEASE commons-logging-1.2 com.springsource.org.aopalliance-1.0.0-sources
org.aopalliance.aop.Advice.jar net.springsource.cglib-2.2.0.jar
资源包括com.springsource.org.aopalliance-1.0.0.jar、comspringsource.org.aspectj.weaver-1.6.8RELEASE.jar、spring-context-4.3.7.RELEASE.jar等
org.springframework.aop-3.0.0.M3.jar
org.springframework.aop-3.0.4.RELEASE.jar org.springframework.asm-3.0.4.RELEASE.jar org.springframework.aspects-3.0.4.RELEASE.jar org.springframework.beans-3.0.4.RELEASE.jar org.springframework....
org.springframework.aop-3.1.0.M2
aopalliance.jar aspectjweaver-1.8.2.jar commons-beanutils.jar commons-collections-3.1.jar commons-lang-2.3.jar commons-logging-1.1.3.jar ezmorph-1.0.6.jar jackson-all-1.7.4.jar ojdbc5.jar org.spring...
org.springframework.aop-3.0.0.M4.jar