Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

@PreAuthorize gives AuthenticationCredentialsNotFoundException .Am I missing out something?

Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I am new to spring.I am trying to implement method level permission access using @PreAuthorize annotation.
Please find below all the code I have written to build sample application.
I have made changes to my web.xml,mvcWeb-servlet.xml mvcWeb-security-servlet.xml.
I am getting below exception when it reaches HelloWebPermissionEvaluator class which implements PermissionEvaluator.

Do I have to add any thing more?Am I missing out something.

I am getting exception

All that thinking. Doesn't it hurt? What do you think about this tiny ad?
We need your help - Coderanch server fundraiser
    Bookmark Topic Watch Topic
  • New Topic