I need to implement JAAS in my application. Wvwrything is good in web tier, but in the EJB when I try to use ctx.isCallerInRole("role") I got this error:
/WEB-INF/incl/nesActions.xhtml @16,59 action="#{noteLogic.list}": javax.ejb.EJBTransactionRolledbackException: java.lang.IllegalStateException: isCallerInRole() called with no security context. Check that a security-domain has been set for the application.