0 Replies Latest reply on Apr 8, 2010 1:19 AM by Prasad B L V

    Problem Using JBoss XACML with Exist DB

    Prasad B L V Newbie

      Hi,

       

      I am trying to retreive a  xacml  policy file from existDB and I am getting a runtime exception. Given  Below is the stack trace.

       

      java.lang.RuntimeException:  java.lang.RuntimeException: java.lang.RuntimeException: Document not  found in exist db:policy.xml in collection:twitter
          at  org.jboss.security.xacml.core.JBossPDP.<init>(JBossPDP.java:150)
           at com.hp.xacml.test.WebPEPTest.getPDP(WebPEPTest.java:144)
          at  com.hp.xacml.test.WebPEPTest.testWebBinding(WebPEPTest.java:32)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
          at  junit.framework.TestCase.runTest(TestCase.java:168)
          at  junit.framework.TestCase.runBare(TestCase.java:134)
          at  junit.framework.TestResult$1.protect(TestResult.java:110)
          at  junit.framework.TestResult.runProtected(TestResult.java:128)
          at  junit.framework.TestResult.run(TestResult.java:113)
          at  junit.framework.TestCase.run(TestCase.java:124)
          at  junit.framework.TestSuite.runTest(TestSuite.java:232)
          at  junit.framework.TestSuite.run(TestSuite.java:227)
          at  org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76)
           at  org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
           at  org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
           at  org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
           at  org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
           at  org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
           at  org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
      Caused  by: java.lang.RuntimeException: java.lang.RuntimeException: Document  not found in exist db:policy.xml in collection:twitter
          at  org.jboss.security.xacml.existdb.locators.policy.ExistPolicySetLocator.getPolicies(ExistPolicySetLocator.java:149)
           at  org.jboss.security.xacml.existdb.locators.policy.ExistPolicySetLocator.setOptions(ExistPolicySetLocator.java:90)
           at org.jboss.security.xacml.core.JBossPDP.bootstrap(JBossPDP.java:326)
           at  org.jboss.security.xacml.core.JBossPDP.<init>(JBossPDP.java:146)
           ... 21 more
      Caused by: java.lang.RuntimeException: Document not  found in exist db:policy.xml in collection:twitter
          at  org.jboss.security.xacml.existdb.util.ExistDBUtil.retrieve(ExistDBUtil.java:172)
           at  org.jboss.security.xacml.existdb.locators.policy.ExistPolicySetLocator.getPolicies(ExistPolicySetLocator.java:131)
           ... 24 more

       

      policy.xml  file is present in the twitter collection.

       

      Can any one please help?....

       

      Thanks in  advance