on 02-26-2009 3:59 PM
Hi,
How can I define security roles for EJB 3.0 stateless session bean.
In my server http://localhost:50000/useradmin I have "myUserRole" roles defined which I want to use for access control of the bean.
I am using this annotation (before class)
@RolesAllowed(value={"myUserRole"})
During deployment I get exception -
com.sap.engine.services.deploy.exceptions.ServerDeploymentException: [ERROR CODE DPL.DS.5082] Exception while [downloading files of application -XXXXXXX]
Regards,
Arpit
You have to map the Java EE role "myUserRole" to a server role (in your case it would be with the same name). Details [here|http://help.sap.com/saphelp_nwce711/helpdata/en/46/3079bf50094f09e10000000a114a6b/frameset.htm].
Regarding the exception - check the server default trace for more detailed problem description.
HTH!
\-- Vladimir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Based on the link given here is the xml. This XML already exists in the application and has such structure
<security-permission>
<security-role-map>
<role-name>developer</role-name>
<server-role-name>role1</server-role-name>
<server-role-name>role2</server-role-name>
<server-role-name>role3</server-role-name>
<server-role-name>role4</server-role-name>
<server-role-name>role5</server-role-name>
</security-role-map>
</security-permission>
My question is, which of the following annotation will work:
@RolesAllowed(value=)
or
@RolesAllowed(value=) //currently I am using this.
Edited by: Arpit Goyal on Feb 27, 2009 4:39 AM
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.