Technote

(troubleshooting)
Accessing custom views after migrating from WebSphere Commerce V5.6 to V6.0
Problem(Abstract)
You have migrated from WebSphere Commerce V5.6 to V6.0. You are accessing the runtime database in your development environment and have custom views in the VIEWREG table that you want to continue using. Complete the following instructions to update your files and access those views in the development environment.
Cause The WebSphere Commerce Development Environment struts framework is not updated. The database migration script is called in the runtime environment, which consequently contains the updated XML file. Resolving the problem NOTE: If you are migrating your WebSphere Commerce 5.6 development environment database, follow the instructions to migrate the development environment database in the WebSphere Commerce Migration Guide. The needed files are automatically generated and placed in the correct locations using the database migration script, and no further steps are required.
Assuming you are accessing the runtime database from your development environment and have run the database migration script in your runtime environment :

  1. Create a backup of struts-config-migrate.xml in the directories mentioned below, ensuring to rename the existing files to struts-config-migrate.bkp so they do not get picked up.

  2. From the runtime server, copy the following file :

    WC_eardir/Stores.war/WEB-INF/struts-config-migrate.xml

  3. Copy the file to the following locations:

    WC_installdir/workspace/Stores/WebContent/WEB-INF

    WC_installdir/workspace/CommerceAccelerator/WebContent/WEB-INF

    WC_installdir/workspace/OrganizationAdministration/WebContent/WEB-INF

    WC_installdir/workspace/SiteAdministration/WebContent/WEB-INF

    The struts-config-migrate.xml file is updated during database migration and contains all views in the VIEWREG table, ensuring the custom views get picked up as well.

  4. Restart the server for the changes to take effect.

 

Document Information

Current web document: http://www.ibm.com/support/docview.wss?uid=swg21239509