On Aug 26, 2009, at 5:33 AM, Bertrand Delacretaz wrote:
Hi Josh,
On Wed, Aug 26, 2009 at 12:10 AM, Josh Kennedy<[email protected]>
wrote:
...I'm new to using spring and jackrabbit and was wondering what
the best
approach is to configure jackrabbit when it is deployed inside
sling inside
a webapp. Currently the only way I have found to successfully
configure it
was by "extending" the jackrabbit-server module and repacking it
inside a
custom bundles module. This works but seems a bit contrived. I've
attempted to specify which configuration file to use in the
sling.properties
file as well as in the web.xml. Neither seemed to work....
The changes of https://issues.apache.org/jira/browse/SLING-739 should
help, can you try that?
I set 'sling.repository.config.file.url' to an HTTP URL in the init-
params of the web.xml to no avail. I am setting the sling.home in the
web.xml and that works. I have a sling.properties file in WEB-INF in
the war with the same URL for 'sling.repository.config.file.url' set
and it still didn't fetch the config. I've also tried specifing a
file name and placing it in various locations within the war (root,
WEB-INF, WEB-INF/classes) and it was never used for jackrabbit.
I'm curious if I may have the configuration files in the wrong
locations or if this is a bug in the way the resource resolver is
currently working.