Sun GlassFish Web Space Server 10.0 Administration Guide

ProcedureTo Download the Updates Using the CLI-Based pkg Tool

  1. Start Update Tool by changing to the webspace-dir/bin directory and typing updatetool.

    • If the Update Tool main window appears, proceed to Step 2.

    • If a prompt appears asking whether to allow the installation of Update Tool to proceed:

      1. Type y to proceed.

        The installer downloads and installs Update Tool and then exits. This process takes approximately 10 ‐ 15 minutes.

      2. Type the updatetool command again to start Update Tool.

        The Update Tool main window appears.

  2. Change to the webspace_dir/pkg/bin directory.

  3. Type the following command to download updates:

    pkg set-authority -P --enable -O repository-name

    Ask your SunSolve service representative for the correct repository name to use.

  4. Type the following commands to install the Update components.

    pkg image-update
  5. Restart the GlassFish server.

    cd <glassfish_dir>/bin
    ./asadmin stop-domain
    ./asadmin start-domain
  6. Change to the webspace_dir/webspace/application directory.

  7. Run the ant install-gfv2.xml script to regenerate and redeploy the Web Space Server WAR files.

    ant -f install-gfv2.xml
  8. Restart the GlassFish server.

    cd <glassfish_dir>/bin
    ./asadmin start-domain