• 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

WebService secure EJB endpoint access from standalone client

 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's a long time since I last posted here.
I have a WebService EJB3 endpoint secured using @DeclareRoles and @RolesAllowed. As allowed by Java EE 6, the bean is packaged as a war. I deployed it in GF 3.1 but I can't get a standalone client to successfully invoke the secure method. The client keeps getting a not authorized exception. I have, of course, created user "user" in GF, assigned "user" to group "AppUser", enabled security manager and default principal to role mapping. I also tried mapping the application role "AppUser" with GF group "AppUser" without any success.
Has anyone else faced a similar problem or have any ideas?



 
No holds barred. And no bars holed. Except this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic