Publishing 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. Ensure that you have Site Administrator access.

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

  3. Issue the publishstore command using valid parameters for your 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"):

  4. While the store archive is being published, you 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 JavaServer Pages (JSP) files in your 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 Deleting 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 in the following directory:

    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 your 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:

      Start the Web server.

  11. In a clustered environment, you must 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.



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

  2. When you launch the consumer direct starter 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 your password in the store, you are also changing it for Administration Console. Instead, to test the features in the store, including changing your 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 your JSP files after publishing your store, you should disable servlet caching in the WAS.

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

 

Related Concepts


Store publish process
Store archive
Starter store archives

 

Related tasks


Publishing a store archive using the Publish wizard
Publishing store archives in a clustered environment

 

Related Reference


Troubleshoot: Publishing a store archive
publishstore utility