java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4997512/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 08:59:10  来源:igfitidea点击:

java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor

javarestglassfishnetbeans-6.9

提问by rick

Trying to run a RESTful webservice using Glassfish and NetBeans6.9.1 I keep getting this exception...It seems to be related to aopalliancce.jar? NB does not include it I downloaded and added it...no joy.

尝试使用 Glassfish 和 NetBeans6.9.1 运行 RESTful Web 服务时,我不断收到此异常...似乎与 aopalliancce.jar 有关?NB 不包括它我下载并添加了它......没有乐趣。

Does anybody have any idea how to get rid of this thing?

有没有人知道如何摆脱这个东西?

SEVERE: Exception while loading the app java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor

严重:加载应用程序时出现异常 java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.springframework.beans.factory.BeanDefinitionStoreException: 从 ServletContext 解析 XML 文档时出现意外异常资源 [/WEB-INF/applicationContext.xml]; 嵌套异常是 java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor

回答by omerkudat

You are using Spring which requires the aopalliance library. Download it from here and include in your classpath: http://uk.maven.org/maven2/aopalliance/aopalliance/1.0. You can also grab it using maven from the same place.

您正在使用需要 aopalliance 库的 Spring。从这里下载并包含在您的类路径中:http: //uk.maven.org/maven2/aopalliance/aopalliance/1.0。您也可以从同一个地方使用 maven 获取它。

回答by ct_

while i'm a bit late to the party, i've noticed this was a helpful bit of information: http://forum.springsource.org/showthread.php?38114-getting-noClassDef-found-error-eventhough-correct-jar-is-present

虽然我参加聚会有点晚,但我注意到这是一个有用的信息:http: //forum.springsource.org/showthread.php?38114-getting-noClassDef-found-error-eventhough-correct -jar 存在