关于Spring3报org.aopalliance.intercept.MethodInterceptor错的问题解决方法

来源:互联网 发布:淘宝店铺怎样推广好 编辑:程序博客网 时间:2024/06/16 18:40

关于Spring3报org.aopalliance.intercept.MethodInterceptor错的问题解决方法

 
 

 

关于 Spring3 报org.aopalliance.intercept.MethodInterceptor问题解决方法

    运行环境:Spring3.1.0.RELEASE
    报错信息如下: 

  1. 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   
  2. (省略)...   
  3. Caused by: java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor  
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/

原创粉丝点击