Administer > Deploy > Publish a store archive


Publish a store archive using the publishstore utility

Although the primary method of publishing a store archive is through the Administration Console, you can also publish a store archive using the command line. Only one store can be published at a time.

  1. If you change the Web application Context path, ensure that it matches the path defined in the WebSphere Commerce Server.

  2. When you open a store from Administration Console, you are logged into the store with the same user name and password that you used to log into Administration Console. If you change the password in the store, you are also changing it for Administration Console. Instead, to test the features in the store, including changing the password, save the site address, close all browser windows, then log on to the store again. For more information, see Limitations when using multiple browsers windows.

  3. If you are logged in as the Site Administrator, you cannot browse a store based on the advanced B2B direct starter store. Instead create a new user that belongs to the default organization, then browse the store.

  4. If you plan to make changes to the JSP files after publishing your store, you should disable servlet caching in the WebSphere Application Server.

    If you are using WebSphere Commerce development environment, the servlet caching is disabled by default.


Procedure

  1. Ensure that you have Site Administrator access.

  2. At a command line, change the directory to WC_INSTALL /bin.

  3. Issue the publishstore command using valid parameters for the store archive.

    You need to copy the following files under StoreAssetsDir to the corresponding store directory, after using the command line to publish the ConsumerDirect or B2BDirect store. For ConsumerDirect, these files need to be copied (for B2BDirect, substitute "B2BDirect" for "ConsumerDirect"):

    • PROFILE_HOME\installedApps\ cell_name\ WC_EAR\StoreAssetsDir to PROFILE_HOME\installedApps\ cell_name\ WC_EAR\ConsumerDirect

    • PROFILE_HOME\installedApps\ cell_name\ WC_EAR\WEB-INF\classes\StoreAssetsDir to PROFILE_HOME\installedApps\ cell_name\ WC_EAR\WEB-INF\classes\ConsumerDirect

    • PROFILE_HOME\installedApps\ cell_name\ WC_EAR\WEB-INF\stores\StoreAssetsDir to PROFILE_HOME\installedApps\ cell_name\ WC_EAR\WEB-INF\stores\ConsumerDirect

    • PROFILE_HOME\installedApps\ cell_name\ WC_EAR\xml\tools\stores\StoreAssetsDir to PROFILE_HOME\installedApps\ cell_name\ WC_EAR\xml\tools\stores\ConsumerDirect

    • PROFILE_HOME\installedApps\ cell_name\ WC_EAR\tools\stores\StoreAssetsDir to PROFILE_HOME\installedApps\ cell_name\ WC_EAR\tools\stores\ConsumerDirect

  4. While the store archive is being published, we will receive updates on the publishing status.

  5. Open Internet Explorer. Go to the following Web address:

    http://host_name/webapp/wcs/stores/servlet/storedir/index.jsp  
    

    Your store displays.

  6. Optional: Compile your JavaServer Page files. Compiling the JSPs files in the site or store before launching it will significantly reduce the amount of time needed to load each store page. As a result, it is recommended that you batch compile your store or sites JSP files after publishing a store archive.

  7. If you publish the advanced B2B direct store archive, stop and restart the commerce server before viewing the store, or the registration page will not display properly. For more information, see Start and stop WebSphere Commerce.

  8. In order to prevent unnecessary exceptions displaying, delete the SendTransactionMsg job from the scheduled jobs. For more information, see Delete a scheduled job.

  9. Optional: In order to enable caching in the starter stores, merge the cachespec.xml file from the following directory:

    with the cachespec.xml file...

    You must edit the existing cachespec.xml file in the WEB-INF directory with the changes in the first file, rather than replace it.

    In WebSphere Commerce development environment, caching is turned on by default, so you do not need to complete this step if you are publishing in the WebSphere Commerce development environment.

  10. If you are running the Web server on a separate node than the WebSphere Commerce node, complete the following steps after publishing a store archive:

    1. Stop the Web server.

    2. Copy the following directory from the WebSphere Commerce machine to the Web Server machine in the same location:

    3. Start the Web server.

  11. In a clustered environment, synchronize all cluster members after publishing any store archive. In a clustered environment, it may take some time for the newly published store assets to be completely propagated to all the nodes in the cluster after the store has finished publishing.


What to do next


+

Search Tips   |   Advanced Search