Details
-
Improvement
-
Resolution: Fixed
-
Major
-
2.1 Final
-
None
Description
Within the current version the repository configuration files (WEB-INF/config/repositories/xxx.xml) contain relative paths (../xxxx). Starting the tomcat application server in another directory than $TOMCAT_HOME/bin (eg. in directory $TOMCAT_HOME -> bin/catalina.sh run) will result in an error in the magnolia startup process, because Jackrabbit does not find the repository.
As far as I know Jackrabbit supports variables in the configuration files (here ${rep.home} ) :
<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
<param name="path" value="${rep.home}/repository"/>
</FileSystem>
The default repository should be either configured to use that variables or handle the paths relativly to the web application directory.
Checklists
Acceptance criteria