IBM Support

Adding and redeploying EAR file after adding a custom JAR file

Question & Answer


Question

How does one properly add and redeploy an EAR file that has had a custom JAR file added to it on Impact 5.x?

Answer

To add custom JAR files to your EAR, run a Netcool/Impact 5.x utility that loads the library JAR files into the Netcool/Impact server EAR file. This utility is named nci_ear_editor and is located in the $NCHOME/impact/bin directory. Use the following steps:
1. Make sure that the Netcool/Impact server is running.
2. Enter the following command at a command-line prompt: "$NCHOME/impact/bin/nci_ear_editor $NCHOME/eWAS/profiles/ImpactProfile/installableApps/<instance name>-impact-5.1.1.ear /tmp/<instance name>-impact-5.1.1.ear"
3. For each client library JAR, perform the following tasks:

    a. Input 1 to specify that you want to add an artifact to the EAR file.
    b. Input 3 to specify that you want to add a JAR artifact to the EAR file.
    c. Specify the fully qualified path and file name of the client JAR file.
4. Input 5 to finish the installation process and write the new EAR file to the temporary location that you specified when you started the script.

After using the nci_ear_editor to add your custom JAR file to
your Impact server's EAR, you need to run the following to redeploy your modified EAR file, (the example below assumes the temporary location of your now updated EAR file is in /tmp directory):


"$NCHOME/bin/nc_ant -f $NCHOME/impact/install/new-server.xml redeploy -Dear.filename=/tmp/<instance name>-Impact-5.1.1.ear"

There is no need to restart eWAS, as the newly added JAR(s) file is available to the server immediately after the redeploy command above has been issued.

Please note one will need to do the steps above on every cluster member, as these EAR files are not included in the files that are routinely resynched between cluster members.

[{"Product":{"code":"SSSHYH","label":"Tivoli Netcool\/Impact"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Netcool\/Impact","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"}],"Version":"5.1;5.1.1","Edition":"All Editions","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 June 2018

UID

swg21440329