aspose file tools*
The moose likes Web Services and the fly likes Trying to access web service protected with JAAS role-based security Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Trying to access web service protected with JAAS role-based security" Watch "Trying to access web service protected with JAAS role-based security" New topic
Author

Trying to access web service protected with JAAS role-based security

Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 642
I have a web service implemented as a stateless EJB3.0, using Eclipse IDE, Java 1.6.0 and deploying to JBoss AS 5.1.0.GA.
I have been successful in configuring JBoss for JAAS security for the rest of the J2EE application, including adding a @RolesAllowed(...) annotation to my EJB methods, and this does indeed work.

I've added such an annotation now to my web service method, and am unable to invoke the method using the SoapUI test client, even though I've provided my user name and password in the properties of the request (this is the data item created in SoapUI, which it uses to generate the actual soap message request).

Note that if I remove the @RolesAllowed(...) annotation from the web service method, I'm able to call it just fine using SoapUI. When I add the @RolesAllowed(...) annotation back in and attempt to call it from SoapUI, I get the following error in the JBoss AS log file:

Is there more I need to do to get this to work?

Thanks,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trying to access web service protected with JAAS role-based security
 
Similar Threads
help me to access web services
Securing Application for JBoss5.1.0
Soap request header:How to remove Soapenv
@RolesAllowed not affecting calls to my EJB3 session bean method?
JAAS in WebServices