Scott, when I run the jacc tests under a security manager. I get the following exception:
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission getProtectionDomain) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269) at java.security.AccessController.checkPermission(AccessController.java:401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:524) at java.lang.Class.getProtectionDomain(Class.java:1392) at org.jboss.ejb.EnterpriseContext$EJBContextImpl.isCallerInRoleCheckForJacc(EnterpriseContext.java:614) at org.jboss.ejb.EnterpriseContext$EJBContextImpl.isCallerInRole(EnterpriseContext.java:523) at org.jboss.ejb.StatelessSessionEnterpriseContext$SessionContextImpl.isCallerInRole(StatelessSessionEnterpriseContext.java:244)
With the addition of the permissions for getProtectionDomain and getPolicy to the server.policy used by the tests-jacc-securitymgr, the tests that were failing due to perms, are passing.