Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[spring] aop config

 
mark smith
Ranch Hand
Posts: 251
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i use spring and i try to use aop.

before some method of a class been called, i would like to check if the user have the correct access to do it...

my files




in a testCase file i do




the error message



it's seem to be a config error...
i spent a couple of hour to try to resolve this problem..

any idea?

thanks
[ April 15, 2008: Message edited by: mark smith ]
 
Veeresh Hosur
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you configured your MessageResourceBundles? if not configure that in your spring config file(applicationContext.xml)
 
An Thien Nguyen Ha
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Have you included CGLIB in your lib folder ?
2. Modify your AOP config just like this :
<aop:config proxy-target-class="true">
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic