java - what kind of error this my First AspectJ -


this put package , code

spring.xml  <?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-2.0.xsd                 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd                 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">  <aop:aspectj-autoproxy></aop:aspectj-autoproxy> <bean name="triangle" class="edu.itmaranatha.model.triangle">     <property name="name" value="triangle name"/> </bean>  <bean name="circle" class="edu.itmaranatha.model.circle">     <property name="name" value="circle name"/> </bean>  <bean name="shapeservice" class="edu.itmaranatha.service.shapeservice" autowire="byname" />  <bean name="logingaspect" class="edu.itmaranatha.service.aspect.loggingaspect"/>   </beans> 

the error

exception in thread "main" org.springframework.beans.factory.beancreationexception: error creating bean name 'org.springframework.aop.config.internalautoproxycreator': instantiation of bean failed; nested exception org.springframework.beans.beaninstantiationexception: not instantiate bean class [org.springframework.aop.aspectj.annotation.annotationawareaspectjautoproxycreator]: constructor threw exception; nested exception java.lang.noclassdeffounderror: org/aopalliance/aop/advice     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.instantiatebean(abstractautowirecapablebeanfactory.java:1011)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbeaninstance(abstractautowirecapablebeanfactory.java:957)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:490)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:461)     @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:295)     @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:223)     @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:292)     @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:198)     @ org.springframework.context.support.abstractapplicationcontext.registerbeanpostprocessors(abstractapplicationcontext.java:741)     @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:464)     @ org.springframework.context.support.classpathxmlapplicationcontext.<init>(classpathxmlapplicationcontext.java:139)     @ org.springframework.context.support.classpathxmlapplicationcontext.<init>(classpathxmlapplicationcontext.java:83)     @ edu.itmaranatha.aopj.aopmain.main(aopmain.java:11) 

what error mean?

constructor threw exception; nested exception java.lang.noclassdeffounderror: org/aopalliance/aop/advice means don't have org.aopalliance.aop.advice in classpath. need add aopalliance.jar.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -