rick
rick

Reputation: 11

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

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.

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

Upvotes: 1

Views: 17608

Answers (2)

ct_
ct_

Reputation: 1229

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

Upvotes: 0

omerkudat
omerkudat

Reputation: 10101

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.

Upvotes: 6

Related Questions