Announcement Announcement Module
No announcement yet.
AspectJ is not working with Spring 3.0.5 Version Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • AspectJ is not working with Spring 3.0.5 Version

    Hi All,

    I am trying to execute some aspects (AspectJ) with spring-mvc application. My aspect configuration is defined properly in META-INF/aop.xml file. One surprising thing I came when I tried to put <mvc:annotation-driven> or <mvc:view-controller> declaration in my spring application context file it's not working, Interestingly If I remove these <mvc> namespaces from my application context file declaration it all works.

    Is it something to do with classloading, am using below artifacts in my POM (complete list of dependencies are excluded for brevity ).

    a. all required spring dependency - 3.0.5.RELEASE
    b. aspectjrt-1.6.11
    c. cglib-2.2

    I am debuging the spring codebase for couple of days, but nothing leads me to find the rootcause of this.

    I will be relieved and greatful if someone throws some light on this, I search google a lot but didn't find anything, am sure other's also have faced similar problem, just not documented anywhere.