My Oracle Support Banner

CM Templates are Getting Wiped Out while Running Install.sh (Doc ID 2338975.1)

Last updated on OCTOBER 24, 2019

Applies to:

Oracle Financial Services Revenue Management and Billing - Version 2.6.0.0.0 and later
Information in this document applies to any platform.

Goal

In RMB v2.6.0.0.0, FW v4.3.0.4.0 using Weblogic v12.1.3, Java v1.8.0.144, Hibernate v4.1.0, JDBC driver 12.1.2 & DB v12.1.2:

We are using SDK with following steps:

------------------
Run install.sh when deployed the code cm.jar. We use below steps for packaging the code & deployment:

1. Deploy bundles and SQL to package environment (TARGET environment)
2. Download Source from Sourtce control repository to local environment (C:\RMBBuild\RMB2600\SRC)
3. Run extractCMSource to prepare packaging directory
Sample of command –
perl extractCMSource.plx -s C:\RMBBuild\RMB2600\SRC -d C:\RMBBuild\RMB2600\DEST -v RMB2600_CM_4307

4. We deploy java code in “packaging directory (RMB2600_CM_4307)” to package server by running applyCM.sh
Sample of command –
cd RMB2600_CM_4307/web/bea_logs/BUILD/CM_packaging/applyCM.sh > applyCM.log

Please note -
a. applyCM.sh generates artefacts and deploy to target environment
b. applyCM.sh generates artefacts during deployment

5. We then run create_CM_Release to create CM release install package from the packaging app server target environment)
Sample of Command -
./create_CM_Release.sh -e ENV -d /web/bea_logs/BUILD/ENV/package -v CM-V2.6.0.0.1_R4287-2017-10-10-MultiPlatform

Please note –
The CM-V2.6.0.0.1_R4287-2017-10-10-MultiPlatform package contains “source”, generated source files and install.sh script

6. Run the install tool in Multiplatform package to deploy the CM release install files to target environment
-------------------

We are seeing the deployment cm templates are getting wiped out.
The script being run during deployment shows following info:

"170928:112351 Expanding environment completed.
170928:112351 Start removing all CM files from the environment
170928:112351 Removing file: /web/bea_apps/RMBPOC/etc/CMVERSION.txt
170928:112351 Removing file: /web/bea_apps/RMBPOC/structures/cm_jars_structure.xml
170928:112351 Removing file: /web/bea_apps/RMBPOC/templates/cm.config.xml.template"

During the deployment, all cm.config.template is getting wipedout which contains our OOM integration configuration and other changes in W eblogic.
Since this is getting wiped out, while running initialSetups.sh, config.xml is getting overwritten which contains any changes done on weblogic after the installation.

As a workaround, we have to redo the steps again & again. To avoid the work we restore the cm.config.template from backup and rerun the initialSetups.sh.
 
This article explains if there is any way the wipe out of cm.xxx.template can be avoided during the deployment so that this workaround can be skipped.
 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.