You can use this procedure only with the Sun Java System Application Server 9.1 Update 1 installer. GlassFish v2 does not offer Silent Mode installation. Silent mode installation is non-interactive. You cannot use the Silent Mode if you are installing the load balancing plug-in on Web Server 7.0. You must first provide a configuration file for information that the installer needs. The following topics are discussed:
The installation configuration file is created when you use the savestate option when starting an interactive installation. During the interactive installation, your input is collected and stored in the configuration file you specified. This file forms the template for silent installation, which you can use later to install the product on one or more machines. If needed, you can modify the installation configuration file.
On Solaris and Linux, for the graphical interface the syntax is:
./distribution_filename -savestate configuration_filename
On Solaris and Linux, for the command-line interface, the syntax is:
./distribution_filename -console -savestate configuration_filename
To create the installation configuration file on the Windows platform, start the installation program from the command line. Change to the directory where the executable file resides. For the graphical method the syntax is:
distribution_filename -savestate configuration_filename
On Windows, for the command-line method, the syntax is:
distribution_filename -console -savestate configuration_filename.
If you do not include a path to the installation configuration file, the file is created in the directory where you are running the installation program.
The following example shows an installation configuration file created by running the installation program with the savestate option.
# # Wizard Statefile created: Mon Apr 30 11:42:36 IST 2007 # Wizard path: /var/tmp/sjsasAAAvXaW4p/appserv.class # # # Install Wizard Statefile section for Sun Java System Application Server # # [STATE_BEGIN Sun Java System Application Server b146d7a741e40985b9d99975a81c9741253346b6] defaultInstallDirectory = /SUNWappserver currentInstallDirectory = /space/programs/as9ee/temp JDK_LOCATION = /space/programs/as9/jdk5/jdk INST_ASADMIN_USERNAME = admin1 INST_ASADMIN_PASSWORD = ngghybgbednrreyatoqzvanqzva INST_MASTER_PASSWORD = pgyrcyuakieqyuqlkurvunatrvg INST_ASADMIN_PORT = 44517 INST_ASWEB_PORT = 44514 INST_HTTPS_PORT = 44520 STORE_ADMIN_AUTH = TRUE ADMIN_PASSWORD_ENCRYPTED = TRUE INST_JMS_PORT = 44532 INST_ORB_PORT = 44529 INST_ORB_SSL_PORT = 44535 INST_ORB_MUTUALAUTH_PORT = 44538 INST_JMX_PORT = 44541 CREATE_DESKTOP_SHORTCUT = FALSE UPDATE_PATH = FALSE CREATE_UPDATE_ICON = CREATE_WINDOWS_SERVICE = FALSE CREATE_DAS = TRUE [STATE_DONE Sun Java System Application Server b146d7a741e40985b9d99975a81c9741253346b6] |
You can modify the installation configuration file by editing the variables and values described in the following table. This table has four columns showing variable names, valid values (if applicable), contents, and comments.
Table 1–2 Installation Configuration File Variables
Variable Name |
Valid Values (If Applicable) |
Content |
Comments |
---|---|---|---|
Build ID |
The string of characters following the distribution in the STATE_BEGIN and STATE_END sections. This value is automatically generated. |
No need to alter this value unless installing a different distribution file than the one that produced the configuration file. To find the build ID, enter distribution_filename -id at the command prompt. |
|
defaultInstallDirectory |
Default installation directory path. | ||
currentInstallDirectory |
Selected absolute installation directory path. | ||
JDK_LOCATION |
Selected JDK installation directory path. |
This entry is needed only for distributions that do not contain a bundled JDK. |
|
INST_ASADMIN_USERNAME |
Administrator user name for initial server instance. | ||
INST_MASTER_PASSWORD |
SSL certificate database password for asadmin operations. |
This entry is obfuscated by default. See also: ADMIN_PASSWORD_ENCRYPTED. |
|
INST_ASADMIN_PASSWORD |
Administrator password for initial server instance. |
This entry is obfuscated by default. See also:ADMIN_PASSWORD_ENCRYPTED. |
|
INST_ASADMIN_PORT |
0 - 65535 |
Administration server port number for initial server instance. |
Default value is 4848. |
INST_ASWEB_PORT |
0 - 65535 |
HTTP port number for initial server instance. |
Default value is 8080. |
INST_HTTPS_PORT |
0 - 65535 |
HTTPS port number for initial server instance. |
Default value is 8081. |
STORE_ADMIN_AUTH |
TRUE, FALSE |
Whether to create admin authentication user preference file. | |
ADMIN_PASSWORD_ENCRYPTED |
TRUE, FALSE |
Obfuscated admin password flag. |
In the initial statefile created by the product installer, this flag is set to TRUE, since the admin password value is obfuscated for security reasons. To override the value for admin password, enter INST_ASADMIN_PASSWORD value in clear text and set this flag to FALSE to enable silent installation to process it correctly. |
INST_JMS_PORT |
0 - 65535 |
JMS port number for initial server instance. |
If the configuration file does not include this entry, default value of 7676 is used. |
INST_ORB_PORT |
0 - 65535 |
ORB port number for initial server instance. |
If the configuration file does not include this entry, default value of 3700 is used. |
INST_ORB_SSL_PORT |
0 - 65535 |
Secure ORB port number for initial server instance. |
If the configuration file does not include this entry, default value of 3820 is used. |
INST_ORB_MUTUALAUTH_PORT |
0 - 65535 |
Mutual authentication ORB port number for initial server instance. |
If the configuration file does not include this entry, default value of 3920 is used. |
INST_JMX_PORT |
0 - 65535 |
JMX port number for initial server instance. |
If the configuration file does not include this entry, default value of 8686 is used. |
CREATE_DESKTOP_SHORTCUT |
TRUE, FALSE |
Whether to create autodeploy folder desktop shortcut. |
Valid for Windows platforms only and is disregarded otherwise. |
UPDATE_PATH |
TRUE, FALSE |
Whether to update PATH environment variable to include Application Server bin directory. |
Valid only for Windows platforms and is disregarded otherwise. If this entry is not present, default value of FALSE is used. |
CREATE_WINDOWS_SERVICE |
TRUE, FALSE |
Whether to create the server as a Windows service. |
Valid for Windows platforms only and is disregarded otherwise. |
SELECTED_ADDONS |
JBI |
Add-ons selected for installation. If no add-ons are selected, the value is blank. |
Valid for Java EE SDK SOA Starter Kit Preview installations only and is disregarded otherwise. |
CREATE_DAS |
TRUE, FALSE |
Creates a DAS if set to TRUE. The default domain is named domain1 and is created under default domain-root-dir. |
Equivalent to selecting "Domain Administration Server" component in component selection panel. |
CREATE_NA |
TRUE, FALSE |
Creates a node agent if set to TRUE. The default node agent would be named agent1 and is created under default node agents root. |
Equivalent to selecting "Application Server Node Agent" component in component selection panel. |
WEBSERVER_INSTALL_DIR |
A valid, read-writable directory location. |
Installation directory of a supported Web server. |
Used only when the load balancing plug-in component is selected for installation. |
WEBSERVER_INSTANCE_DIR |
A valid read-writable directory location. |
Instance directory of selected web server where the load balancing plug-in will be configured. |
Used when load balancing plug-in component is selected to be installed on Sun Java System Web Server. Not applicable for other web servers. |
PLUGIN_TYPE |
Sun ONE Web Server, Apache HTTP Server, or Microsoft IIS Web Server. |
Type of web server on which the load balancing plug-in will be installed/configured. |
Used only when the load balancing plug-in component is selected for installation. |
PLUGIN_CERTIFICATE_FILE |
A valid path to a certificate file. |
Used only when Apache HTTP Server is selected for load balancing plug-in installation. Not supported or is ignored for other web servers. |
After creating the configuration file, use it to install Application Server in silent mode as many times as needed. Use the following procedure:
Review the installation configuration file and verify that it contains the values to use for your silent installation.
Copy your installation configuration file to each machine where you plan to install the software.
Copy the Application Server distribution file to each machine where you plan to install the software.
Navigate to the directory where you copied the distribution file and your installation configuration file.
Start silent installation at the command line using one of the following command formats:
On Solaris or Linux:
./distribution_filename -silent configuration_filename
On Windows:
distribution_filename -silent configuration_filename
The installation program reads the specified configuration_filename, checks for adequate disk space, then installs the product based on the data in configuration_filename.
When the prompt is returned, the silent installation is complete and the installation components are installed on your systems.
Start the Application Server software by using the instructions in the .