Until now I used only web-based login into my aplpication. For login I use DatabaseServerLoginModule defined in login-config.xml
When I tried call context.isCallerInRole() from my session bean I get exception: isCallerInRole() called with no security context. Check that a security-domain has been set for the application.
When I tried add <security-domain> into jboss.xml, I get exception during deploy:
18:21:17,500 ERROR [SecurityInterceptor] Authentication exception, principal=null
18:21:17,500 ERROR [LogInterceptor] EJBException, causedBy:
java.lang.SecurityException: Authentication exception, principal=null
I do not know where is problem ?!