-
1. Re: Failed to resolve any values for urn:oasis:names:tc:xacml:2.0:subject:role
jorgedso Aug 2, 2012 1:38 PM (in response to jorgedso)Hello again.
I've been mixing sunxacml things. So, I tried to use only jboss xacml objects to simply test the example in https://community.jboss.org/wiki/XACMLRBACLocator
I've created a file called jbossxacml.xml where I put the following content https://community.jboss.org/wiki/XACMLRBACLocator#Variant_2
XACML RBAC Locatorbut commented the manager role lines
In the same place, I created a file called employee-PPS-policyset.xml where I put the following content https://community.jboss.org/wiki/XACMLRBACLocator#Employee_274008
In the same place, I created a file called employee-RPS-policyset.xml where I put the following content https://community.jboss.org/wiki/XACMLRBACLocator#Employee
Then, I created a simple java App with the following code in the class main:
InputStream is = new FileInputStream("/home/jorgedso/Projects/XACML/jbossxacml.xml");
JBossPDP pdp = new JBossPDP(is);
Trying to run the App, there was an exception:
2/Ago/2012 18:30:14 org.jboss.security.xacml.core.JBossPDP addPolicySets
INFO: Reading policysets from location=/home/jorgedso/Projects/XACML/employee-PPS-policyset.xml
Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Null Inputstream for /home/jorgedso/Projects/XACML/employee-PPS-policyset.xml
at org.jboss.security.xacml.core.JBossPDP.<init>(JBossPDP.java:163)
How can this happen? The content of that file is what I described above. How can it be possible to be Null InputStream? The file exists, obviously.
Can you help?
Thank you!