Fix pack installation on an instance fails with ADMA4003E error

When you attempt to install a fix pack on a WebSphere Commerce instance, you encounter an ADMA4003E error.

In the installation log files at WC_installdir/instances/instance_name/logs, you see an error similar to the following message:
ADMA4003E: EARExpander: The enterprise archive (EAR) file that is specified is not valid: 
    /tmp/wcupdate/WC_<instancename>/temp.ear  [antcall] Exiting /opt/WebSphere/CommerceServer70/config/deployment/xml/exportEar.xml. BUILD FAILED
    /opt/WebSphere/CommerceServer70/config/deployment/xml/exportEar.xml:48: The following error
    occurred while executing this line:
    /opt/WebSphere/CommerceServer70/config/deployment/xml/exportEar.xml:288: Java returned: 1
    at at at at at at at at at at at at at at at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
    sun.reflect.NativeMethodAccessorImpl.invoke( at
    sun.reflect.DelegatingMethodAccessorImpl.invoke( at
    java.lang.reflect.Method.invoke( at Caused by:


The problem occurs during the Enterprise Archive (EAR) file export process. The Update Installer attempts to export the WebSphere Commerce EAR to update the EAR and then redeploy. The export process fails because the user does not have full rights and permissions.

The WebSphere Commerce Fix Pack is unable to install because a root user started the instance instead of the WebSphere Commerce user.


To proceed with the fix pack installation, you must stop and restart the server with a WebSphere Commerce user. For example:
  1. Go to the WC_profiledir/bin directory.
  2. Stop the server. For example,
    ./ server1
  3. Switch to the WebSphere Commerce user,
    su - non_root_user
  4. Start the server. For example,
    ./ server1