Closed rmpestano closed 6 years ago
@RolesAllowed annotation triggers a javax.ejb.AccessLocalException when the a user doesn't have security role configured on the annotation.
@RolesAllowed
javax.ejb.AccessLocalException
User must be redirected to 403 error page in this situation.
OBS: To make it work with current AdminFaces version (RC18) one can declare the error page on its web.xml as below:
<error-page> <exception-type>javax.ejb.AccessLocalException</exception-type> <location>/403.xhtml</location> </error-page>
Issue Overview
@RolesAllowed
annotation triggers ajavax.ejb.AccessLocalException
when the a user doesn't have security role configured on the annotation.User must be redirected to 403 error page in this situation.
OBS: To make it work with current AdminFaces version (RC18) one can declare the error page on its web.xml as below:
Additional Information