Postinstallation Task 1: Copying Dependencies
Order Management Server does not include all the required 3rd party dependencies. A copyLib.sh script is provided under $OM_HOME/roles/<service-name>. This script runs under each service and copies the required dependencies.
- Provide the path from where the dependencies have to be copied. Do this by setting the following variables in
copyLib.sh:
- CONFIG_FILE_PATH
- FTL_JAR_PATH (optional)
- FTLGROUP_JAR_PATH (optional)
- EMS_JAR_PATH_tibjms (optional)
- EMS_JAR_PATH_jms (optional)
- HIBERNATE_JAR_PATH
The copyLib.sh must look similar to this:
#!/usr/bin/env bash # for Oracle DB export JDBC_JAR_PATH=/data/oracle12c/app/oracle12c/product/12.1.0/dbhome_1/jdbc/lib/ojdbc7.jar # for Postgres DB export FTLGROUP_JAR_PATH=$FTL_HOME/lib/tibftlgroup*.jar export FTL_JAR_PATH=$FTL_HOME/lib/tibftl*.jar export EMS_JAR_PATH_tibjms=/opt/tibco/ems/8.3/lib/tibjms.jar export EMS_JAR_PATH_jms=/opt/tibco/ems/8.3/lib/jms-2.0.jar export EMS_JAR_PATH_tibcrypt=/opt/tibco/ems/8.3/lib/tibcrypt.jar export HIBERNATE_JAR_PATH=/opt/tibco/af/5.0/lib/hibernateLibs/*.jar export RESTFUL_API_JAR_PATH=/opt/tibco/af/5.0/lib/RESTful_api/javax.ws.rs-api-2.0.1.jar export MAIL_JAR_PATH=/opt/tibco/af/5.0/lib/mail/mail-1.4.jar DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" echo "$DIR" for role in `find $DIR/../roles/*/standalone/bin/copyLib.sh` do echo "##############Copying for $role ###################" sh $role done
Alternatively, you can set them as system properties. Each variable points to the
.jar
file to be copied. See the example in thecopyLib.sh
script for clarification. - After setting the variables, run the copyLib.sh script.