Oracle GlassFish Server 3.0.1 Installation Guide

Creating the Installation Answer File

The answer file forms the template for silent installation. The file is created when you use the trial mode (-n) option to start an interactive installation. In trial mode, actual installation does not take place.

During the interactive installation you can accept the default values presented or you can change them. Your input is collected and stored in the answer file, which is then used to install GlassFish Server. You can use the answer file as it is or you can modify the file before using it.

ProcedureTo Create the Installation Answer File

The installation wizard is used to create the answer file. Actual installation does not take place.

Before You Begin

Ensure that your system meets the requirements listed in Hardware and Software Requirements in Oracle GlassFish Server 3.0.1 Release Notes.

Also see Known Issues in Oracle GlassFish Server 3.0.1 Release Notes for known issues related to installation.

  1. Download the desired GlassFish Server 3.0.1 bundle.

    See GlassFish Server Download Locations for a list of download locations. See Table 1–3 for a list of available self-extracting bundles.

  2. Start the installation in trial mode.

    1. Change to the directory where you downloaded the self–extracting file.

    2. On Solaris, Linux, and Mac OS X systems, grant execute permissions to the self–extracting file if necessary:

      chmod +x ./self-extracting-file-name

    3. From the command line, type:

      self-extracting-file-name -n answer-file

      self-extracting-file-name is the name of the self-extracting file that you downloaded.

      -n specifies trial mode installation.

      answer-file is the name you assign to the answer file. If you do not include a path to the file, the file is created under the directory from which the installation program is run.

      For example:


      ogs-3.0.1-unix.sh -n 3.0.1-answer
      

    The Welcome page is displayed. Use the Next button to move through the installation process.

  3. Respond to the license agreement.

  4. Specify where to install GlassFish Server.

    The default installation directory is as follows:

    • Solaris, Linux, and Mac OS X systems: user's-home-directory/glassfishv3

    • Windows systems: SystemDrive:\glassfishv3

    The default installation directory is referred to as as-install-parent throughout GlassFish Server documentation.

  5. Specify administration settings.

    • Specify port numbers for the Administration Console and HTTP transmissions. The default value for Admin Port is 4848 and for HTTP Port is 8080.

    • To allow access to the Administration Console without a password, leave Username as admin and the Password field empty.

    • To require a password for access to the Administration Console, specify a user name and password in the corresponding fields. User name and password are case sensitive.

  6. Specify whether to install Update Tool.

    Update Tool is an administrative tool that enables you to install updates and add-on components to an existing GlassFish Server 3.0.1 installation. Update Tool can be installed during GlassFish Server installation or at a later time. For more information about Update Tool, see Update Tool in Oracle GlassFish Server 3.0.1 Administration Guide.

    • If you are not installing Update Tool, deselect the Install Update Tool check box.

    • If you are installing Update Tool and your system accesses the Internet through a proxy, specify the proxy host and proxy port.

    • If you are installing Update Tool and do not require the automatic notifications of available updates after installation, deselect the Enable Update Tool check box.


    Note –

    Update Tool differs from Upgrade Tool, which is used to migrate the configuration and deployed applications from an earlier version of GlassFish Server to the current version. For more information about Upgrade Tool, see the Oracle GlassFish Server 3.0.1 Upgrade Guide.


  7. Specify the path to the JDK to be used with the installation.

    Use a JDK installation detected by the installer, or specify the path for a different JDK.

    JDK 6 is required. See Installation Requirements for more information.


    Note –

    This JDK page is not presented for Mac OS X installations. The installation uses the value in the JAVA_HOME environment variable.


  8. Review the Ready to Install selections and click Install to proceed with trial mode installation and create the answer file.

    Unless a path to the file was specified in Step 2, the answer file is created under the directory from which the installation program is run.