• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

Setting up a simple spring-aop program

Ranch Hand
Posts: 254
MySQL Database Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm writing a simple spring-aop program that intercepts the controller and runs after a method has returned. I'm integrating this in an existing project as well. I want that this aspect kick in after the controller returns back.

This is the pointcut that I've used that just sends some text to the output stream.

I'm new to AspectJ and don't know where I'm going wrong. Is it the way I'm wiring it together? Or am I using incompatible jars? I hope I described my problem clearly otherwise I will clarify further.

These are the relevant jars I have in my /lib directory (not using maven unfortunately):

- aspectjrt-1.6.5.jar
- aspectjweaver-1.6.2.jar
- spring-aop-3.2.10.jar
- aopalliance-1.0.jar

This is the code I've added to the xml configuration:

But on starting the server I'm getting this exception:

I'm not sure if I approve of this interruption. But this tiny ad checks out:
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic