• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Setting up a simple spring-aop program

 
Ranch Hand
Posts: 254
1
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:




reply
    Bookmark Topic Watch Topic
  • New Topic