Delete Custom vApp jars .JAR
search cancel

Delete Custom vApp jars .JAR

book

Article ID: 259039

calendar_today

Updated On:

Products

CA Identity Suite

Issue/Introduction

We need a script to delete a .jar from the directory:  /opt/CA/wildfly-idm/standalone/deployments/iam_im.ear/user_console.war/WEB-INF/lib

 

Environment

Release : 14.4.1, 14.4.2 

Resolution

Attached to this article you will find the CustomJarDel fix provided by our L2 group. The read me states:

Note: This patch will be used to remove the specified files permanently without any backup, which are mentioned in the delCustomJars.txt.

This fix consists two files for fix(HF_CUSTOM_JAR_DEL.tgz.gpg and delCustomJars.txt), this is a universal patch, which can be applied any Virtaul Appliance Identity Manager releases of Centos 8.

With this you can delete any number of files to iam_im.ear deployment folder.

Here delCustomJars.txt is a sample file, where we can specify the list of files with their absolute path, which needs to be deleted from iam_im.ear deployment folder.

Here HF_CUSTOM_JAR_DEL.tgz.gpg is the patch file, which deletes the list of files mentioned in the delCustomJars.txt from the iam_im.ear deployment folder.

Please follow the below steps to delete the custom jars from iam_im.ear deployment folder

Steps:
1) Update the delCustomJars.txt file with the files needs to be deleted with their absolute path, and copy delCustomJars.txt under /home/config folder

    Eg: /opt/CA/wildfly-idm/standalone/deployments/iam_im.ear/user_console.war/WEB-INF/lib/custom1.jar

        /opt/CA/wildfly-idm/standalone/deployments/iam_im.ear/user_console.war/WEB-INF/lib/custom2.jar

          ...etc

2) apply the patch(patch_vapp HF_CUSTOM_JAR_DEL.tgz.gpg), it automatically deletes the listed files in the delCustomJars.txt file, from iam_im.ear deployment directory.

3) Repeat Step 1 and Step 2 on all the nodes, wherever it is necessary.

Attachments

CustomJarDel_1675270542122.zip get_app