(Developer)
Install Update Packages for WebSphere Commerce Developer (interactive method)
We can install WebSphere Commerce Developer Update Packages using the IBM Installation Manager that we used to install WebSphere Commerce Developer. Ensure that you test the environment after installation. Update Packages contain fixes that correct known problems, so updating might prevent you from having to place a service call. Before you update, review the following information.
Before beginning
Important:
- Update both WebSphere Commerce and WebSphere Commerce Developer to the same level.
- Stop any Java applications running on your machine.
- Ensure that Rational Application Developer is not running.
- Disable any Web server that you configured on your machine.
- Log on to Windows as a user with Administrator privileges.
- If you do not have the Update Package, download and extract the Update Package to install.
- Login to Passport Advantage.
- Search for the Update Package by part number. For information about available part numbers, see
List of available Update Packages.Note: The Update Package can update to the target version from any previous version. For example, if we are on 9.0.0.0 and want to update to 9.0.0.2, you only need to download the 9.0.0.2 Update Package.
- Download and extract the package.
- Back up any customized files.
Many files are updated. Files that might be changed include the JSP files for starter stores and WebSphere Commerce Accelerator, files for Management Center, and more. Back up files in case you need to reapply any customizations.
- Back up the database. The database updates included in this update cannot be undone. To undo the database update, we must restore the database from a back up. For more information about how to back up, see BACKUP DATABASE COMMAND.
Procedure
- Open Installation Manager.
- Add the WebSphere Commerce Developer Update Package repository location to the Installation Manager:
- On the Start page of Installation Manager, click File > Preferences, and then click Repositories. The Repositories page opens, showing any available repositories, their locations, and whether they are connected.
- On the Repositories page, click Add Repository.
- In the Add Repository dialog box, click Browse. Navigate to the location of the WebSphere Commerce Developer Update Package directory, select the repository.config file, then click OK. The new repository location is listed.
- Click Test Connections to ensure that the Repository URL is available.
- Optional: To save the current WebSphere Commerce Developer state as a back up before you install the update, then complete the following steps:
- On the Start page of Installation Manager, click File > >Preferences > Files for Rollback.
- Select Save files for rollback.
- From the Start page, click Update. The Installation Manager searches its defined repositories for available packages.
- Select the WebSphere Commerce Developer package and click Next. The Update packages wizard detects all of the applicable fixes. Recommended features are automatically selected.
- Select the updates to apply and click Next. The update is automatically preselected.
- Click Next.
- Accept the license agreement and click Next. The Select the features to install panel is displayed. The feature is automatically selected.
- Click Next.
- Review the summary information and click Update to install the updates.
- Optional: Review the installation history by selecting File > Installation History
- Check for any issues in the WCDE_installdir\UpdateDelta\9.0.x.y\applyUpdate.log file.
- The x and y values represent the Update Package level.
- Merge files as needed. If any files were added, updated or removed by the developer since the last installation, and also added, updated or removed by the update, these files are recorded during the process.
- Check for any issues in the WCDE_installdir\UpdateDelta\9.0.x.y\backup\merges.log file.
Note:
- All files that overlap with changes in the Update Package are backed up to the WCDE_installdir\UpdateDelta\9.0.x.y\backup directory before making any changes to your workspace. However, only the files that require review after installation are recorded in the merges.log.
- It is possible that some files that are updated might have paths or information that is specific to the environment after installation. In these cases, the replacement file will contain an updated template version of the file, before any variables are replaced. We must manually merge these files, replacing the variables in the updated file with the values from the backup version of the file to ensure that the environment continues to function correctly.
- For each pair of files in merges.log, compare the original version with the updated version using a text file comparison tool.
- For each file that was described as deleted by the update process, review the original version to determine if it is still needed and make appropriate changes.
- If you deleted a compressed archive (ZIP, JAR, WAR) and the update process modifies that archive, the archive is recreated by the update process, but will only contain the changed files in the archive so it will be incomplete. In this case a warning is written to merges.log, recommending to rollback, restore the original archives, and reapply the update. For this reason, IBM recommends that you do not delete any compressed archives, even if they are not used.
- Update the database to the latest WebSphere Commerce database schema.
- Back up the database. We need to back up because if you ever uninstall an update, you need to also restore the database to the earlier version. For more information about how to back up, see BACKUP DATABASE COMMAND.
Update the wcs.9.0.0.2.bootstrap.xml file. IBM is aware of an issue with an XML file in the Version 9.0.0.2 Update Package that causes the updatedb utility to fail. The fix will be resolved in the next update. Complete the following steps to immediately fix the issue and finish the update to Version 9.0.0.2.
- Open the WCDE_installdir/schema/data/xml/9.0.0/wcs.9.0.0.2.bootstrap.xml file for editing.
- Wrap the contents of the file with <import> </import>.
- Save the file.
- Run the updatedb utility to update the database.
Rebuild search index by following these steps:
- Open WebSphere Commerce development environment in the RAD environment.
- Expand WebSphere Applicaton Server Liberty Profile > Servers > searchServer > resources > search > index, and delete managed-solr and solr folders.
- Start Transaction server and Search server, and build search index.
What to do next
Refresh the workspace and republish the application after the update is completed:
- Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
- In the Explorer view, select all projects and select File > Refresh (or the F5 keyboard shortcut) to refresh the projects in the workspace.
- (v9.0.0.1) (Optional) If you enabled workspaces in WebSphere Commerce Developer Version 9.0.0.0 and you just installed Version 9.0.0.1, complete the following steps for workspaces to function in 9.0.0.1.
- Open the Administration console, and go to Application Server > server > Process definition > Java Virtual Machine. server is the name of your server, and the default value is server1.
- In the Generic JVM argument field of the Configuration tab, add the following string.
-DWorkspaceTaskListEnabled=true
- Save our changes to the master configuration.
- Start or restart the test server
- Right-click the test server in the Servers view and select Publish.
- Wait for the application to finish publishing and to restart.
Related reference
EJB errors after updating to WebSphere Commerce Developer Version 9.0.0.1 or 9.0.0.2