Re: Initialize Oak CR

2013-06-12 Thread PeriS
Any help please? Is it somewhere else I should be looking for replies? On Jun 10, 2013, at 2:00 PM, PeriS pvsub...@indiana.edu wrote: I m trying the following; Oak oak = new Oak(); ContentRepository repository = oak.createContentRepository(); I understand this should give me a default CR

Re: Initialize Oak CR

2013-06-12 Thread Alex Parvulescu
Hi, you can always take a look at the tests, see how we bootstrap a repository, that should get you going in the right direction. [0], [1] [0] http://svn.apache.org/repos/asf/jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/AbstractRepositoryTest.java [1]

Initialize Oak CR

2013-06-11 Thread PeriS
I m trying the following; Oak oak = new Oak(); ContentRepository repository = oak.createContentRepository(); I understand this should give me a default CR with the MKs initialized. I m encountering a null-pointer exception in the Oak.java class particluarly in the createContentRepositry()

Re: Initialize Oak CR

2013-06-11 Thread Michael Dürig
Hi Peri, You need to pass a security provider instance using one of the .with methods before calling createContentRepository(). Security configuration is still pretty much work in progress. Also you don't need a repository.xml. This is a thing of JR2. Michael On 10.6.13 19:00, PeriS