Announcement Announcement Module
Collapse
No announcement yet.
AspectJ is not working with Spring 3.0.5 Version Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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
    <dependency>
    <groupId>org.aspectj</groupId>
    <artifactId>aspectjweaver</artifactId>
    <version>1.6.12</version>
    </dependency>
    c. cglib-2.2
    <dependency>
    <groupId>cglib</groupId>
    <artifactId>cglib</artifactId>
    <version>2.2</version>
    </dependency>

    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.

    Thanks
    Ajit
Working...
X