Question / Problem
It might be required to change the repository home directory of CRX, especially when deploying CRX in a 3rd party application server such as WebSphere.
Answer / Resolution
Per default, CRX will be installed in a folder named crx-quickstart
located in the JVM's root folder. In order to change the default crx-quickstart
installation folder, follow these steps. In this example the default installation folder will be prefixed with my_custom_path
:
- extract the default
crx-xxx-quickstart.jar
with 'java -jar crx-xxx-quickstart.jar
' in a temporary location - navigate to
crx-quickstart/server/webapps
- unzip
crx-explorer_crx.war
tocrx-explorer_crx
- edit
crx-explorer_crx/WEB-INF/web.xml
- locate servlet with name
Repository
and adjust the value of therepository-home
parameter tomy_custom_path/crx-quickstart/repository
- locate servlet
and adjust value of parameterJCRExplorer
explorer-home
tomy_custom_path/crx-quickstart/repository
- locate servlet
and change value of parameterJCRWebdavServer
home
tomy_custom_path/crx-quickstart
- locate servlet with name
- edit
crx-explorer_crx/WEB-INF/log4j.xml
- adapt the path of the
error.log
andtranslation.log
files and prefix them withmy_custom_path
- adapt the path of the
- unzip
crx-launchpad.war
tocrx-launchpad
- edit
crx-launchpad/WEB-INF/web.xml
- adjust parameter
sling.home
tomy_custom_path/crx-quickstart/launchpad
- adjust parameter
After having reconfigured the paths, simply repackage the previously unzipped webapps and deploy these in the application server of your choice, first crx-explorer_crx.war
, then crx-launchpad.war
. Once deployed, the repository home directory will be located at <app_server_home>/my_custom_path
.
Note:- You might encounter an io file permission error like [1] make sure the app runas user have write privileges to the parent of sling.home.
[1] java.io.FileNotFoundException: my_custom_path/../system.id (Permission denied)
Applies
CRX1.4.2 and CRX2.x