cancel
Showing results for 
Search instead for 
Did you mean: 

Defining EJB Security Roles using Annotation

arpitgoyal
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

arpitgoyal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Question answered on different forum.

former_member541575
Participant
0 Kudos

Hi Arpit

i think you did not give proper path in Deployment.

Please check the path which you have given.

In case of EJB, it follows a Specific path.

you can deploy your beans at that path.

Please check Specification of EJB deployment.

Regards

Atul

rejish_balakrishnan
Contributor
0 Kudos

Hi,

Reason might be that it has hard reference to resource com.sap.portal.ivs.connectorservice with type application, which is not active on the server.

Please go through the link for more on this.

[Error During Deployment|http://help.sap.com/saphelp_nw2004s/helpdata/en/7c/9ce742bdab5604e10000000a155106/content.htm]