Restoring the development environment to default setup

Restoring the development environment to its default setup is accomplished by using a convenient command called restoreDefault.bat.

After this utility runs, the following development environment components are restored:
  • Management Center, management-center.toolkit.80.component, is reset to the default configuration.
  • The Derby database is restored to include only the original bootstrap data.

Procedure

  1. Open a command prompt and go to the WCDE_installdir\bin directory.
  2. Run the following command:
    restoreDefault.bat
    Or
    restoreDefault.bat force
    where force is an optional argument that bypasses the confirmation prompt.
  3. Rebuild the search index:
    1. Stop the WebSphere Commerce test server.
    2. Locate and delete the /data/ directories that are under each of the Solr cores.
      For example, delete the following directories
      • solrhome/masterCatalogId/localename/CatalogEntry/data
      • solrhome/masterCatalogId/localename/CatalogEntry/unstructured/data
      • solrhome/masterCatalogId/localename/CatalogGroup/data
      • solrhome/masterCatalogId/localename/default/data
    3. Preprocess the WebSphere Commerce search index data.
    4. Build the WebSphere Commerce search index.
  4. Optional: Check the log file WCDE_installdir\logs\setup.log for details.
    Note: You might notice the following error in the updateModules.log file: java.lang.RuntimeException: Unable to acquire PluginConverter service during generation. You can safely ignore these errors.