0 Replies Latest reply on Aug 17, 2013 2:59 PM by Deepak Sambrani

    Error - Fine grained authorization using XACML in Jboss AS 7.1

    Deepak Sambrani Newbie

      I'm trying to use the fine grained authorization using XACML in Jboss AS 7.1, I'm getting following error. The config files used are under WEB-INF are

      WEB-INF/

          jboss-web.xml

          jbossxacml-config.xml

          jboss-xacml-policy.xml

          web.xml

       

      Also I've attached the web app war file and the standalone.xml. By the error it seems the policy registration has not happened. Can anyone guide me in in resolving this error.

       

      Thanks in advance.

       

      23:53:43,406 TRACE [org.jboss.security.plugins.authorization.JBossAuthorizationContext] (http--127.0.0.1-8080-1) Control flag for entry:org.jboss.security.authorization.config.AuthorizationModuleEntry{org.jboss.security.authorization.modules.XACMLAuthorizationModule:{}REQUIRED}is:[REQUIRED]

      23:53:43,416 DEBUG [org.jboss.security.authorization.modules.XACMLAuthorizationModule] (http--127.0.0.1-8080-1) Error with delegate:: java.lang.IllegalStateException: PB00015: Null Value:PolicyRegistration passed is null

      at org.jboss.security.authorization.modules.web.WebXACMLPolicyModuleDelegate.authorize(WebXACMLPolicyModuleDelegate.java:86) [picketbox-4.0.6.final.jar:]

      at org.jboss.security.authorization.modules.AbstractAuthorizationModule.invokeDelegate(AbstractAuthorizationModule.java:147) [picketbox-4.0.6.final.jar:]

      at org.jboss.security.authorization.modules.XACMLAuthorizationModule.authorize(XACMLAuthorizationModule.java:53) [picketbox-4.0.6.final.jar:]

      at org.jboss.security.plugins.authorization.JBossAuthorizationContext.invokeAuthorize(JBossAuthorizationContext.java:244) [picketbox-4.0.6.final.jar:]

      at org.jboss.security.plugins.authorization.JBossAuthorizationContext.access$0(JBossAuthorizationContext.java:227) [picketbox-4.0.6.final.jar:]

      at org.jboss.security.plugins.authorization.JBossAuthorizationContext$1.run(JBossAuthorizationContext.java:157) [picketbox-4.0.6.final.jar:]

      at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_33]

      at org.jboss.security.plugins.authorization.JBossAuthorizationContext.authorize(JBossAuthorizationContext.java:153) [picketbox-4.0.6.final.jar:]

      at org.jboss.security.plugins.JBossAuthorizationManager.internalAuthorization(JBossAuthorizationManager.java:441) [picketbox-4.0.6.final.jar:]

      at org.jboss.security.plugins.JBossAuthorizationManager.authorize(JBossAuthorizationManager.java:119) [picketbox-4.0.6.final.jar:]

      at org.jboss.security.plugins.javaee.WebAuthorizationHelper.hasUserDataPermission(WebAuthorizationHelper.java:273) [picketbox-4.0.6.final.jar:]

      at org.jboss.as.web.security.JBossWebRealm.hasUserDataPermission(JBossWebRealm.java:623) [jboss-as-web-7.1.0.Final.jar:7.1.0.Final]

      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:425) [jbossweb-7.0.10.Final.jar:]

      at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:154) [jboss-as-web-7.1.0.Final.jar:7.1.0.Final]

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.10.Final.jar:]

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.10.Final.jar:]

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.10.Final.jar:]

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.10.Final.jar:]

      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.10.Final.jar:]

      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.10.Final.jar:]

      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.10.Final.jar:]

      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_33]