Tag Archives: AOP Error

[Solved] AOP Error: BeanPostProcessor before instantiation of bean failed

Error Messages:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘xxx’ defined in file [xxx]:BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0’: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException

 

Reason:
Did not import the aspectjweaver.jar package. I had imported the aspectj-1.9.5.jar package and still reported an error, after importing the aspectjweaver.jar it can execute the program normally.