Post-Installation Task 2: Copying Dependencies
OMS does not ship with all the required 3rd party dependencies. A copyLib.sh script is provided under $AF_HOME/roles. 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:
- JDBC_JAR_PATH
- EMS_JAR_PATH_tibjms
- EMS_JAR_PATH_jms
- EMS_JAR_PATH_tibcrypt
- HIBERNATE_JAR_PATH
- RESTFUL_API_JAR_PATH
- MAIL_JAR_PATH
The copyLib.sh should 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 JDBC_JAR_PATH=/opt/PostgreSQL/pgJDBC/postgresql-42.0.0.jre7.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/4.0/lib/hibernateLibs/*.jar export RESTFUL_API_JAR_PATH=/opt/tibco/af/4.0/lib/RESTful_api/javax.ws.rs-api-2.0.1.jar export MAIL_JAR_PATH=/opt/tibco/af/4.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 will point to the .jar file to be copied. See the example in the copyLib.sh script for clarification.
- After setting the variables, run the copyLib.sh script.
Copyright © Cloud Software Group, Inc. All rights reserved.