Announcement Announcement Module
Collapse
No announcement yet.
Spring3 NoClassDefFoundError aopalliance/.../MethodInterceptor tx:annotation-driven Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring3 NoClassDefFoundError aopalliance/.../MethodInterceptor tx:annotation-driven

    One of our bean definition XML files contains
    <tx:annotation-driven/>
    which causes a NoClassDefFoundError looking for "org/aopalliance/intercept/MethodInterceptor". Removing the tx:annotation-driven clause eliminates the error.

    Google returns very old hits from Spring 1 having to do with not including the aopalliance classes. These are not included in Spring 3, and I would rather not have to pull additional jars (Spring is supposed to be self-contained, right?)

    Are these old internal references that should have been updated to use Spring's AOP instead?

  • #2
    You need aopalliance jar file in application's classpath. You may get it from http://www.springsource.com/reposito...&version=1.0.0 or from the Maven central repository.

    -Ramnivas

    Comment


    • #3
      Is this a permanent requirement, or just a stopgap until the next Spring release?

      Comment


      • #4
        Adding aopalliance jar has been and will be a requirement. Prior to 3.0, Spring used to ship the required jars in a distribution (you still were required to add those jars to the classpath). There is a JIRA issue that will make such a distribution available in a future 3.x release.

        -Ramnivas

        Comment

        Working...
        X