This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

spring noclassdeffounderror reflectiveaspectjadvisorfactory

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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(

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:

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!