IBM Support

Installing/uninstalling maintenance may fail during the deployEAR task if Cumulative Fix JR52306 was installed



The maintenance install or uninstall fails with a message like the following: Could not find file /tmp/wcupdate/WC_demo/lib/SR15SecureRandom.jar to copy.


The updatelog.txt and updatetrace.log show errors like this:
2015.06.01 19:10:06.682 EDT I WCUPDIERR0005: Failed to deploy the WebSphere Commerce instance from /tmp/wcupdate directory.
2015.06.01 19:10:06.682 EDT I For more information, see the log file: "/opt/IBM/WebSphere/CommerceServer70/logs/update/actions/install/deployear_WC_demo.log" or the "Troubleshooting: WebSphere Commerce Update Installer issues" topic in the Knowledge Center.
2015.06.01 19:10:06.725 EDT W IOException: Ear deployment failed
2015.06.01 19:10:06.725 EDT IOException: Ear deployment failed
Caused by: IOException: Ear deployment failed

deployear_WC_demo.log shows the following:
/opt/IBM/WebSphere/CommerceServer70/config/deployment/xml/deployEar.xml:55: The following error occurred while executing this line:
/opt/IBM/WebSphere/CommerceServer70/config/deployment/xml/deployEar.xml:274: Warning: Could not find file /tmp/wcupdate/WC_demo/lib/SR15SecureRandom.jar to copy.

Total time: 3 seconds


There are two reasons this can happen:
1. When uninstalling JR52306:
The SR15SecureRandom.jar is removed as a part of the uninstallation of JR52306.fep but the deployEar.xml still references this file and tries to copy it as a part of the EAR deployment.

2. If JR52306.fp is installed but JR52306.fep has not been installed:
The reference to SR15SecureRandom.jar is added to the deployEar.xml but this jar is added as a part of JR52306.fep.
As such, any future maintenance will fail when the EAR deployment is trying to copy the file as it does not exist.

Resolving The Problem

The logs show us where the error is coming from for example:
/opt/IBM/WebSphere/CommerceServer70/config/deployment/xml/deployEar.xml:274: Warning: Could not find file /tmp/wcupdate/WC_demo/lib/SR15SecureRandom.jar to copy

If you navigate to the deployEar.xml and check the line in question (in this case, line 274), you will see the following:
<copy todir="${instance.temppath}/${search.earname}/lib" overwrite="true" file="${instance.temppath}/${instance.earname}/lib/SR15SecureRandom.jar"/>

This line should include an element to set failonerror to false so that the EAR deployment does not fail when that file does not exist.
Update that line to the following:
<copy todir="${instance.temppath}/${search.earname}/lib" overwrite="true" file="${instance.temppath}/${instance.earname}/lib/SR15SecureRandom.jar" failonerror="false" />

and rerun the maintenance install/uninstall.

[{"Product":{"code":"SSYSYL","label":"WebSphere Commerce Enterprise"},"Business Unit":{"code":"BU012","label":"WCE"},"Component":"Fix Pack \/ APAR installation","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"","Edition":""},{"Product":{"code":"SSYSYL","label":"WebSphere Commerce Enterprise"},"Business Unit":{"code":"BU012","label":"WCE"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":""},{"Product":{"code":"SSPK6A","label":"WebSphere Commerce Professional"},"Business Unit":{"code":"BU012","label":"WCE"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":""}]

Document Information

Modified date:
16 June 2018