File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Oracle/OAS and the fly likes WebService secure EJB endpoint access from standalone client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "WebService secure EJB endpoint access from standalone client" Watch "WebService secure EJB endpoint access from standalone client" New topic
Author

WebService secure EJB endpoint access from standalone client

a sarkar
Ranch Hand

Joined: Aug 05, 2010
Posts: 92
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?





Abhijit
-------
SCJP 5, SCBCD 5, OCWCD 5, OCEWSD 6, CSM
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WebService secure EJB endpoint access from standalone client
 
Similar Threads
Security in EJB
EJP's @RolesAllowed({""})
securing web service developed as an EJB
Basic Authentication on a Web Service [WebSphere 7 for developer]
JAX-WS - please help convert proxy to BindingProvider for HTTP auth