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.
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
:
crx-xxx-quickstart.jar
with 'java -jar crx-xxx-quickstart.jar
' in a temporary locationcrx-quickstart/server/webapps
crx-explorer_crx.war
to crx-explorer_crx
crx-explorer_crx/WEB-INF/web.xml
Repository
and adjust the value of the repository-home
parameter to my_custom_path/crx-quickstart/repository
JCRExplorer
and adjust value of parameter explorer-home
to my_custom_path/crx-quickstart/repository
JCRWebdavServer
and change value of parameter home
to my_custom_path/crx-quickstart
crx-explorer_crx/WEB-INF/log4j.xml
error.log
and translation.log
files and prefix them with my_custom_path
crx-launchpad.war
to crx-launchpad
crx-launchpad/WEB-INF/web.xml
sling.home
to my_custom_path/crx-quickstart/launchpad
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)
CRX1.4.2 and CRX2.x
Увійдіть до облікового запису