On 14.09.11 11:06, "Francisco Carriedo Scher" 
<[email protected]<mailto:[email protected]>> wrote:
            // else node already has a policy, get that one
            acl = (AccessControlList) aMgr.getPolicies(path)[0];

Executing the code above i get  the following exception (caused by the code 
above highlighted in red colour):

java.lang.ArrayIndexOutOfBoundsException: 0

Yes, this means getPolicies() returns an empty array, and that is probably the 
case when using the SimpleAccessManager.

        <SecurityManager 
class="org.apache.jackrabbit.core.security.simple.SimpleSecurityManager" 
workspaceName="security">

This is not the 2.x default configuration… this should be the 
DefaultSecurityManager. See [0]. Where did you get your repository.xml from?

        <LoginModule 
class="org.apache.jackrabbit.core.security.simple.SimpleLoginModule">

Same, here, you want the DefaultLoginModule.

[0] 
http://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-core/src/main/resources/org/apache/jackrabbit/core/repository.xml

Regards,
Alex

--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel

Reply via email to