For those who have problem while configure JCR repo in Jetty, the configuration below may get help:
Add this config to jetty-env.xml and see the result.Code:<New class="org.mortbay.jetty.plus.naming.Resource"> <Arg>jcr/repository</Arg> <Arg> <New class="javax.naming.Reference" id="reference"> <Arg>javax.jcr.Repository</Arg> <Arg>org.apache.jackrabbit.core.jndi.BindableRepositoryFactory</Arg> <Arg>null</Arg> <Call name="add" id="reference"> <Arg> <New class="javax.naming.StringRefAddr"> <Arg>configFilePath</Arg> <Arg>your-local-path\repository.xml</Arg> </New> </Arg> </Call> <Call name="add" id="reference"> <Arg> <New class="javax.naming.StringRefAddr"> <Arg>repHomeDir</Arg> <Arg>your-local-path-to-repository</Arg> </New> </Arg> </Call> </New> </Arg> </New>
Cheer!!!


Reply With Quote