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)
  | 

What this basically means is that I need to add a runtime permission for 
getProtectionDomain to the server.policy (testsuite/src/resources) used by the 
tests.

In addition to the above, questions I have:  
a) Do I need to add a runtime permission anywhere else?
b) I do not need a PrivilegedExceptionAction in this case. Right?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3939730#3939730

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3939730


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to