For IBM i OS operating system

Troubleshooting: Reinstall of WebSphere Commerce V7.0 on IBM i fails when WebSphere Application Server base edition is used

If you are using WebSphere Application Server base edition on IBM i platform and try to reinstall WebSphere Commerce V7.0, the installation fails with a NullPointerException.

You might encounter an error similar to the following message in the /tmp/InstallShield/wctrace_timestamp.log file.
com.ibm.commerce.install.wizard.action.SetupPropertyBeansWizardAction.execute(),  
settingWebSphere Application Server properties 
com.ibm.commerce.install.wizard.action.SetupPropertyBeansWizardAction.setWASJavaProperty(),  WAS is installed 
com.ibm.commerce.install.wizard.action.SetupPropertyBeansWizardAction.setWASJavaProperty(),  WAS
    ver is:null java.lang.NullPointerException at
    java.util.Hashtable.put(Hashtable.java:775) at
    java.util.Properties.setProperty(Properties.java:621) at
    java.lang.System.setProperty(System.java:403)  at
    com.ibm.commerce.install.wizard.action.SetupPropertyBeansWizardAction.setWASJavaProperty(SetupPropertyBeansWizardAction.java:862)
    at
    com.ibm.commerce.install.wizard.action.SetupPropertyBeansWizardAction.execute(SetupPropertyBeansWizardAction.java:177)
    at
    com.installshield.wizard.StandardWizardListener.execute(StandardWizardListener.java:123)
    at
    com.installshield.wizard.StandardWizardListener.currentBeanChanged(StandardWizardListener.java:106)
    at com.installshield.wizard.Wizard$RunThread.run(Wizard.java:1569)

Problem

The WebSphere Application Server edition that is detected is not handled correctly by the Installation wizard and defaults to 'ND', which causes a NullPointerException to be thrown.

Solution

Complete the following steps to reinstall WebSphere Commerce:
  1. On the system where you plan to run the WebSphere Commerce Installation wizard, download the following IBMiWASFix.jar file and place it in a temporary directory fix_dir.
  2. Update the classpath to ensure that the WebSphere Commerce Installation wizard uses the new JAR file:
    Method Procedure
    If you plan to launch the WebSphere Commerce Installation wizard from the IBM i system, perform the following steps:
    1. Open the installer_image/WC/setup.qsh file in a text editor.
    2. Search for "-classpath $CDPATH/setup.JAR" and replace with "-classpath fix_dir/IBMiWASFix.JAR;$CDPATH/setup.JAR"
    3. Save and close the file
    If you plan to launch the WebSphere Commerce Installation wizard on a Windows system to perform a remote install, perform the following steps:
    1. Open the installer_image/WC/iSeriesServer.bat file in a text editor.
    2. Search for "setup.exe -os400" and replace with "setup.exe -cp:p fix_dir\IBMiWASFix.jar -os400"
    3. Save and close the file
  3. Launch the WebSphere Commerce Installation wizard and reinstall WebSphere Commerce.