Compiling JavaServer Pages files

Compiling the JavaServer Pages (JSP) files in your site or store will significantly reduce the amount of time needed to load the load your store. As a result, it is recommended that you batch compile your store or sites JSP files after publishing a store archive.

Important: Batch compiling is not available in WebSphere Commerce Studio.

To batch compile JavaServer Pages files, do the following on your WebSphere Commerce machine:

  1. Start a command line session.
  2. Change to the following directory:
    WAS_installdir/bin
    
  3. Issue one of the following commands, depending on the operating system on which you want to compile the JSP files:
       
    AIX
    Linux
    Sun Solaris Operating Environment
    JspBatchCompiler.sh -enterpriseapp.name "WC_instance_name"
       -webmodule.name "Stores.war" -cell.name "hostname"
       -node.name "hostname" -server.name "WC_instance_name"
    
    iSeries
    JspBatchCompiler -enterpriseapp.name "WC_instance_name" 
      -webmodule.name "Stores.war" -cell.name "hostname"
      -node.name "hostname" -server.name "WC_instance_name"
      -instance WAS_instance_name
    

    Note: If a default WAS instance is used, the -cell.name and -node.name parameters are set to the iSeries hostname, by default. If a non-default WAS instance is used, the -cell.name and -node.name parameters are set to the hostname_WAS_instance_name by default.

    Windows
    JspBatchCompiler.bat -enterpriseapp.name "WC_instance_name"
       -webmodule.name "Stores.war" -cell.name "hostname"
       -node.name "hostname" -server.name "WC_instance_name"
    

    where instance_name is the name of the WebSphere Commerce instance for which you are compiling the JSP files and hostname is the short host name of the machine on which you are compiling the JSP files. The name of the default WebSphere Commerce instance is demo.

    To compile all of the WebSphere Commerce JSP files for your site, omit the -webmodule.name "Stores.war" option.

    To compile all of the WebSphere Commerce Payments JSP files for your site, omit the -webmodule.name "Stores.war" option and replace the following options in the commands:

    Replace... With..
    -enterpriseapp.name "WC_instance_name"-enterpriseapp.name "instance_name_Commerce_Payments_App"
    -server.name "WC_instance_name"-server.name "instance_name_Commerce_Payments_Server"

    where instance_name is the name of the WebSphere Commerce Payments instance for which you are compiling the JSP files. The name of the default WebSphere Commerce Payments instance is wpm.

Several errors may be logged when you perform these compiles. These may be safely ignored.