2014년 3월 24일 월요일

SPRING3_ERROR Aspect weaving(weaver) 오류 수정

sts로 하면 자동 세팅되서 좋아했는데 이런 것들이 하나씩 빠져있네..

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'perfomanceTraceAdvice'
defined in class path resource [myframework/spring/aspect-context.xml]: BeanPostProcessor before instantiation
of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'org.springframework.aop.aspectj.AspectJPointcutAdvisor#0':
Cannot create inner bean '(inner bean)' of type [org.springframework.aop.aspectj.AspectJAroundAdvice]
while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name '(inner bean)':
Cannot resolve reference to bean 'publicMethod' while setting constructor argument;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'publicMethod': Instantiation of bean failed;
nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/BCException


오류속에 답이 있었다.
NoClassDefFoundError가 뜨지 않는가

weaving 관련 오류 떠서 상당히 해멨다 ㅜㅜ

maven을 사용할 경우 추가하자
maven 사이트가면 최신 정보 있다.

<!-- asoect weaver -->
<dependency>
    <groupId>aspectj</groupId>
    <artifactId>aspectjweaver</artifactId>
    <version>1.5.3</version>
</dependency>

댓글 없음:

댓글 쓰기