spring - How to resolve java.lang.NoClassDefFoundError: org/aopalliance/aop/Advice error? -
i trying use spring aop framework. code compiled without error. when tried run it, got above exception. using netbeans ide 8.0.1. have following libraries , jar files included.
1) spring framework 4.0.1 2) aspectjrt.jar 3) aspectjweaver.jar 4) aopalliance-alpha1.jar 5) asm-5.03.jar 6) cglib-3.1.jar
here spring.xml config file
<?xml version="1.0" encoding="utf-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context" xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd "> <aop:aspectj-autoproxy/> <bean name="triangle" class="springaop.triangle"> <property name="name" value="my triangle" /> </bean> <bean name="circle" class="springaop.circle"> <property name="name" value="my circle" /> </bean> <bean name="shapeservice" class="springaop.shapeservice" autowire="byname" > </bean> <bean name="loginaspect" class="springaop.loginaspect" /> </beans>
these latest jar files available each publisher. did not see advice class anywhere in aopalliance jar. searched problem. appears advice class may have been removed aopalliance jar. have not been able search it. know how resolve problem other telling me use maven :) ?
i don't know aopalliance-alpha1
is. need aopalliance
@ version 1.0. can here. (download jar if aren't using maven.)
Comments
Post a Comment