chemistry-dev mailing list archives

Re: Which jackRabbit-core version to use with chemistry-opencmis-server-jcr-0.3.0-incubating-SNAPSHOT ?

Date

Wed, 23 Mar 2011 09:53:10 GMT

Hi,
Have a look at the repository.properties file. You can add additional
configuration settings there. Keys which start with jcr. are passed to
the RepositoryFactory after removing the jcr. prefix. So for passing the
org.apache.jackrabbit.repository.home to the RepositoryFactory add a line
jcr.org.apache.jackrabbit.repository.home=/path/to/the/repository
to the repository.properties file.
As an aside, for debugging and testing purposes you can do
mvn -o -Dlog4j.configuration=file:./log4j.config -Pdevelop jetty:run
to get a the JCR CMIS Server up and running (AtomPub).
Michael
On 23.3.11 1:23, Jakub Liska wrote:
> Hey,
>
> I've got this issue https://issues.apache.org/jira/browse/CMIS-336,
> where JcrServiceFactory is searching for PREFIX_JCR_CONFIG = "jcr."
> properties, but right after in
> org.apache.jackrabbit.core.RepositoryFactoryImpl.getRepository() it is
> searched for "String REPOSITORY_HOME
> = "org.apache.jackrabbit.repository.home";"
>
> So it doesn't make sense, if I set REPOSITORY_HOME, it is removed from
> the properties, because it doesn't start with "jcr." and no matter
> what jcr.* properties I set, there just must be REPOSITORY_HOME or map
> == null, for the repository to be retrieved ...
>
>
> Could please anybody help ? I suspect that I need a different version
> of jackRabbit .... the chemistry-opencmis-server-jcr doesn't say what
> version it needs ...