[jboss-user] [Security & JAAS/JBoss] - Re: Problem turning on security manager with JBoss 4.0.4

osganian do-not-reply at jboss.com
Fri Sep 26 13:13:11 EDT 2008


Trying it under JDK 1.6.0_05 I get:


  | java.lang.ClassCircularityError: org/jboss/security/SimplePrincipal
  | 	at java.lang.Class.forName0(Native Method)
  | 	at java.lang.Class.forName(Class.java:247)
  | 	at sun.security.provider.PolicyFile.addPermissions(PolicyFile.java:1381)
  | 	at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1268)
  | 	at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1231)
  | 	at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1167)
  | 	at sun.security.provider.PolicyFile.implies(PolicyFile.java:1122)
  | 	at java.security.ProtectionDomain.implies(ProtectionDomain.java:213)
  | 	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:301)
  | 	at java.security.AccessController.checkPermission(AccessController.java:546)
  | 	at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
  | 	at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
  | 	at java.io.File.exists(File.java:731)
  | 	at org.apache.naming.resources.FileDirContext.file(FileDirContext.java:827)
  | 	at org.apache.naming.resources.FileDirContext.lookup(FileDirContext.java:210)
  | 	at org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:293)
  | 	at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1884)
  | 	at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1749)
  | 	at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
  | 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
  | 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
  | 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
  | 	at java.lang.Class.forName0(Native Method)
  | 	at java.lang.Class.forName(Class.java:247)
  | 	at sun.security.provider.PolicyFile.addPermissions(PolicyFile.java:1381)
  | 	at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1268)
  | 	at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1231)
  | 	at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1167)
  | 	at sun.security.provider.PolicyFile.implies(PolicyFile.java:1122)
  | 	at java.security.ProtectionDomain.implies(ProtectionDomain.java:213)
  | 	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:301)
  | 	at java.security.AccessController.checkPermission(AccessController.java:546)
  | 	at com.illuminatics.util.SecurityUtils$1.run(SecurityUtils.java:34)
  | 	at java.security.AccessController.doPrivileged(Native Method)
  | 	at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
  | 	at com.illuminatics.util.SecurityUtils.hasPermission(SecurityUtils.java:49)
  | 	at org.apache.jsp.test3_jsp._jspService(test3_jsp.java:72)
  | 

Somebody out there must have used org.jboss.security.SimplePrincipal class to grant specific permissions to a user, right?

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

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



More information about the jboss-user mailing list