I'm using spring 4.1 under Apache
Tomcat 7 on Windows. I'm getting an error that I'm wondering if anyone can help with. Thanks - Bill.
I'm getting the following error:
org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/aop/aspectj/annotation/ReflectiveAspectJAdvisorFactory org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
It looks like I have the correct jars.
When I compile the web project / war, it uses the following dependency (gradle):
My web app's WEB-INF/lib has the following jars (retrieved from
maven repo using gradle):
I search the jars in WEB-INF/lib and see that org/springframework/aop/aspectj/annotation/ReflectiveAspectJAdvisorFactory.class is in
spring-aop-4.1.1.RELEASE.jar
The Apache Version is:
My web.xml has:
Spring's xml is: