When installing Harweb on a Linux system, the standard method is to employ an X-Windows interface so that the options can be selected from GUI windows. In some cases this is not possible and Harweb must be installed “silently” using a response file to specify setting and option selections. This article explains how to install Harweb from a command prompt on Linux or Unix if no X-windows system is available.
Harvest Software Change Manager v12.x and higher
Unix/Linux operating systems
In the following instructions,
|
everywhere you see |
replace with |
|
<oracle home folder> |
the folder to which the Oracle client is installed |
|
<oracle sid> |
the "sid" for your Oracle database |
|
<scm home folder> |
the folder to which SCM client is installed |
|
<pec home folder> |
the folder to which PEC is installed |
|
<java home folder> |
the folder to which Java is installed |
|
<tomcat home folder> |
The folder to which Tomcat is installed |
|
<jboss home folder> |
the folder to which JBoss is installed |
|
<broker hostname> |
the hostname of your SCM Broker machine |
|
<temp folder> |
the location of the "tmp" folder on your Harweb install machine |
|
<context name> |
the root context name for your harweb application (ex. harweb) |
|
<oracle port number> |
the Oracle database port number |
|
<oracle version> |
the Oracle version (ex. 12g or 19c) |
|
<oracle hostname> |
the hostname of your Oracle database machine |
|
<schemaowner password> |
the harvest database schema owner's password |
|
<schemaowner userid> |
the harvest schema owner's userid |
|
<tns service name> |
the tns service name for your Harvest database |
Some things to check before you begin:
find / -name java 2>null
find / -name tools.jar 2>null
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/bin/java
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/lib/tools.jar
export ORACLE_HOME=<oracle home folder>
export ORACLE_SID=<oracle sid>
export CA_SCM_HOME=<scm home folder>
export PATH=$CA_SCM_HOME/bin:<pec home folder>:$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$CA_SCM_HOME/lib:<pec home folder>/lib/i86_64_linux24:$LD_LIBRARY_PATH
. <pec home folder>/bin/rtinit.sh
export JAVA_HOME=<java home folder>
export CATALINAHOME=<tomcat home folder>
export PATH=$PATH:$JAVA_HOME/bin:$CATALINAHOME/bin
export LD_LIBRARY_PATH=$CATALINAHOME/webapps/harweb/WEB-INF/lib:$LD_LIBRARY_PATH
export PATH=$PATH:$CATALINAHOME/webapps/harweb/WEB-INF
export JAVA_HOME=<java home folder>
export JBOSS_HOME=<jboss home folder>
export PATH=$PATH:$JAVA_HOME/bin:$JBOSS_HOME/bin
export LD_LIBRARY_PATH=$JBOSS_HOME/server/default/deploy/harweb.war/WEB-INF/lib:$LD_LIBRARY_PATH
export PATH=$JBOSS_HOME/server/default/deploy/harweb.war/WEB-INF:$PATH
chmod -R 775 $CA_SCM_HOME/log
usermod -a -G cascm appserverowner
When all is ready, create a response file that contains all the information the HarwebInstall.sh script will need to complete the installation.
Here is an example rsp file that works with Tomcat
#/n
#Fri Jan 02 17:03:32 GMT 2026
DOMAIN=
OJDBCLOC=<oracle home folder>/jdbc/lib/ojdbc8.jar
AUTHMODE=Internal
SINSTANCE=
NODE_TO_DEPLOY_LOC=
APPNAME=<context name>
JBOSSCONFIGURATION=
SJDBCLOC=
INSTALL_TYPE=New
DBPASSWORD=
BROKER=<broker hostname>
HARWEBHOME=
WEBPACKAGEONLY=false
DBUSER=
IPORT=
SJDBCVERSION=
SAUTHMODE=
APPHOME=<tomcat home folder>
IDBNAME=
BOURL=
OHOSTNAME=<oracle hostname>
SSERVERNAME=
SDBNAME=
APP_SERVER=Apache Tomcat
OSERVICE=<tns service name>
DBTYPE=Oracle
OJDBCVERSION=
OPORT=<oracle port number>
TEMP=<temp folder>
IHOSTNAME=
Installing Harweb in "silent" or "unattended" mode:
Follow these steps:
java -Dcascmhome="$CA_SCM_HOME" -jar HarwebInstall.jar -rsp path/harweb.rsp
java -Dcascmhome="$CA_SCM_HOME" -jar HarwebInstall.jar -rsp path/harweb.rsp -usr <cascm_username> -pwd <cascm_password>
You should check the installation guide for your version of CA Harvest SCM for further details about installing Harweb.
The above example response files were created for CA Harvest SCM 14.5.01. If you have a different version of Harvest, the options you specify in the response file might be slightly different. The easiest way to get a response file that contains the correct options for your situation is to run through the Harweb installation on a Windows system and capture the response file that the installer will create. You can then port this response file to Linux or Unix and change any values that must be changed to reflect the correct settings for your system. On a Windows system, the harweb.rsp file is found in the C:\Users\<userid>\AppData\Local\Temp\2 folder.
The online documentation shows an example response file for installing Harweb here: The Web Interface Response File