JCRCopyRepository.bat or
the JCRCopyRepository.sh file from
SAS Technical Support. Place the script file in the SAS-config-dir\Lev1\Web\Utilities directory.
This file should be customized for your environment. After the file
is customized and saved, run the batch or script file to reconfigure
the SAS Content Server and share the database used by SAS Web Infrastructure
Platform Services.
JCRCopyRepository script
file is not shipped with your software. To obtain a copy of the JCRCopyRepository
script file, contact SAS Technical Support.
JCRCopyRepository script
file, see Reconfigure SAS Content Server.@echo on :Script for executing the JCRCopyRepository utility setlocal REM Define needed environment variables call "%~dp0..\..\level_env.bat" set LAUNCHERJAR=%SASVJR_HOME%\eclipse\plugins\sas.launcher.jar set UTILITIESDIR=%LEVEL_ROOT%\Web\Utilities set PICKLISTS=%SAS_HOME%\SASWebInfrastructurePlatform\9.3\Picklists\wars\ sas.svcs.scs\picklist set DRIVER=path-to-jdbc-driver-JAR-file set CLASSPATH=%UTILITIESDIR%;%LAUNCHERJAR% "%JAVA_JRE_COMMAND%" ^ -classpath "%CLASSPATH%" ^ -Djava.system.class.loader=com.sas.app.AppClassLoader ^ -Dsas.app.launch.config="%PICKLISTS%" ^ -Dsas.app.repository.path="%SASVJR_REPOSITORYPATH%" ^ -Dsas.app.class.path="%UTILITIESDIR%;%DRIVER%" ^ -Djava.security.auth.login.config=%LEVEL_ROOT%\Web\Common\login.config^ -Xmx256m ^ -Dscs.jndi.jndiName=sas/jdbc/SharedServices ^ -Dscs.jndi.jdbcUrl=jdbc-url ^ -Dscs.jndi.driver=jdbc-driver-class^ -Dscs.jndi.user=database-user ^ -Dscs.jndi.pwd=password ^ org.apache.jackrabbit.core.JCRCopyRepository %1 %2 endlocal if [%2] EQU [exit] exit %ERRORLEVEL%
#!/bin/sh # # JCRCopyRepository.sh # . `dirname $0`/../../level_env.sh LAUNCHERJAR=$SASVJR_HOME/eclipse/plugins/sas.launcher.jar UTILITIESDIR=$LEVEL_ROOT/Web/Utilities PICKLISTS=$SAS_HOME/SASWebInfrastructurePlatform/9.3/Picklists /wars/sas.svcs.scs/picklist DRIVER=path-to-jdbc-driver-JAR-file CLASSPATH=$UTILITIESDIR:$LAUNCHERJAR "$JAVA_JRE_COMMAND" \ -classpath "$CLASSPATH" \ -Djava.system.class.loader=com.sas.app.AppClassLoader \ -Dsas.app.launch.config="$PICKLISTS" \ -Dsas.app.repository.path="$SASVJR_REPOSITORYPATH" \ -Dsas.app.class.path="$UTILITIESDIR:$DRIVER" \ -Djava.security.auth.login.config=../Common/login.config\ -Xmx256m \ -Dscs.jndi.jndiName=sas/jdbc/SharedServices \ -Dscs.jndi.jdbcUrl=jdbc-url \ -Dscs.jndi.driver=jdbc-driver-class \ -Dscs.jndi.user=database-user \ -Dscs.jndi.pwd=password \ org.apache.jackrabbit.core.JCRCopyRepository $1 $2 exit 0
repository.DatabaseName.xml file
from the SAS-install-dir/SASWebInfrastructurePlatform/9.3/Static/wars/sas.svcs.scs/WEB-INF/templates directory
to the directory that you created in the previous step. Then, rename
this file as repository.xml.
copy C:\SAS_HOME\SASWebInfrastructurePlatform\9.3\Static\wars\sas.svcs.scs\ WEB-INF\templates\repository.tkts.xml C:\SAS-config-dir\Lev1\AppData\ SASContentServer\Repository\repository.xml
SharedServices-ds.xml file
located in the JBOSS_HOME/server/SASServer1/deploy/ directory.
The user ID can be located in the JBOSS_HOME/server/SASServer1/conf/login-config.xml file,
in the <application-policy name="webinfpltfm-encryptDBPassword">
section. You cannot use the password in the encrypted form that is
used in the login-config.xml file. Use a SAS encoded version of the
password.
JCRCopyRepository script
file that was placed in the SAS-config-dir/Web/Utilities directory,
modify the value of the DRIVER parameter
to indicate the path to the JDBC driver for the database: