org/springframework/aop/framework/AbstractAdvisingBeanPostProcessor 的 java.lang.NoClassDefFoundError [英] java.lang.NoClassDefFoundError for org/springframework/aop/framework/AbstractAdvisingBeanPostProcessor
问题描述
我收到以下编译错误:
May 11, 2014 1:30:41 PM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath*:META- INF/spring/context.xml]
Offending resource: ServletContext resource [/WEB-INF/spring/appServlet/servlet- context.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [jar:file:/C:/Users/Dean/Downloads/springsource/vfabric-tc-server- developer-2.9.5.SR1/base-instance/wtpwebapps/cointraders-api/WEB-INF/lib/data-core-1.0.0- SNAPSHOT.jar!/META-INF/spring/context.xml]; nested exception is org.springframework.beans.FatalBeanException: Invalid NamespaceHandler class [org.springframework.data.jpa.repository.config.JpaRepositoryNameSpaceHandler] for namespace [http://www.springframework.org/schema/data/jpa]: problem with handler class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/aop/framework/AbstractAdvisingBeanPostProcessor
我正在运行 spring 3.1.1.RELEASE.我一直在试图找出这个问题,之前的搜索几乎没有帮助.我的堆栈跟踪 link
I am running spring 3.1.1.RELEASE. I have been trying to figure out this problem and there's little help from previous searches. My stack trace here link
推荐答案
AbstractAdvisingBeanPostProcessor 说它从 3.2 版开始存在,而不是 Spring 3.1.同样来自这里 在那里你可以看到 Spring 3.1.4 中 spring-aop 工件中的所有类,但该类似乎不存在.
The documentation for AbstractAdvisingBeanPostProcessor says that it exists since version 3.2, not Spring 3.1. Also from here where you can see all the classes in the spring-aop artifact from Spring 3.1.4, that class does not seem to exist.
我建议你升级到 Spring 3.2 并确保你的类路径上没有 Spring 3.1 依赖
I suggest you upgrade to Spring 3.2 and make sure that there are no Spring 3.1 dependencies on your classpath
这篇关于org/springframework/aop/framework/AbstractAdvisingBeanPostProcessor 的 java.lang.NoClassDefFoundError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!