Sun Java Enterprise System 5 Update 1 Installation Guide for UNIX

ProcedureTo Configure Application Server After a Configure Later Installation

After a Configure Later installation, you will need to run a post installation script to set the Application Server environment. The scripts configure and create the AppplicationsServer8–base/bin/* shell scripts and a config/asenv file from templates that are installed during installation. (For a Configure Now installation, they are created during installation.)

  1. Navigate to the following directory of the Java ES 5U1 distribution. For example:

    cd /os_arch/Product/application_server/Tools

  2. Open the postInstall README file and follow instructions to do the following:

    1. Run the postInstall script:

      ./postInstall Application8Server-base  ApplicationServer8Config-base

    2. Create a new domain.

      When using the asadmin create-domain command to create a new domain, you specify values for two parameters: adminPort and instancePort. The adminPort value can be the same as that used by the server instance. However, the instancePort value should not be the same as that used by any of the server instances.

  3. If needed, modify the environment variables in the ApplicationServer-base/samples/common.properties file.

    If you do not know some paths, you can copy them from the ApplicationServer-base /config/asenv.conf file. For example:

    Solaris Properties 

    com.sun.aas.derbyRoot=/opt/SUNWjavadb

    com.sun.aas.webServicesLib=/opt/SUNWappserver/appserver/lib

    com.sun.aas.imqHome=/var/opt/SUNWappserver/domains/domain1/imq

    com.sun.aas.imqBinDir=/usr/bin

    com.sun.aas.imqUserMgr=/usr/bin/imqusermgr

    com.sun.aas.imqLib=/usr/share/lib

    com.sun.aas.installRoot=/opt/SUNWappserver/appserver

    com.sun.aas.javaRoot=/usr/jdk/entsys-j2se

    com.sun.aas.domains.dir=/var/opt/SUNWappserver/domains

    #admin.password= The admin password will not be saved as default. User can enter it and save it manually.

    admin.host=jws-v210-4

    appserver.instance=server

    appserver.instance.port=8080

    admin.user=admin

    admin.port=4849

    derby.port=1527

    domain.name=domain1

    server.cert.alias=s1as

    keystore=${com.sun.aas.domains.dir}/${domain.name}/config/keystore.jks

    keystore.password=changeit

    trustStore=${com.sun.aas.domains.dir}/${domain.name}/config/cacerts.jks

    Linux Properties 

    #admin.password= The admin password will not be saved as default. User can enter it and save it manually.

    server.cert.alias=s1as

    keystore=${com.sun.aas.domains.dir}/${domain.name}/config/keystore.jks

    domain.name=domain1

    com.sun.aas.imqHome=/var/opt/sun/appserver/domains/domain1/imq

    com.sun.aas.imqUserMgr=/opt/sun/mq/bin/imqusermgr

    com.sun.aas.domains.dir=/var/opt/sun/appserver/domains

    admin.user=admin

    appserver.instance=server

    com.sun.aas.imqBinDir=/opt/sun/mq/bin

    trustStore=${cbom.sun.aas.domains.dir}/${domain.name}/config/cacerts.jks

    com.sun.aas.imqLib=/opt/sun/mq/share/lib

    keystore.password=changeit

    com.sun.aas.derbyRoot=/opt/sun/javadb

    admin.port=4849

    derby.port=1527

    com.sun.aas.webServicesLib=/opt/sun/appserver/lib

    admin.host=jws-linuxpc-2

    com.sun.aas.javaRoot=/usr/jdk/entsys-j2se

    com.sun.aas.installRoot=/opt/sun/appserver

    appserver.instance.port=8080

  4. If needed, configure Application Server for load balancing.

    Follow the instructions in the Chapter 4, Configuring Web Servers for Load Balancing, in Sun Java System Application Server Enterprise Edition 8.2 High Availability Administration Guide.

  5. If needed, configure Application Server for use with the Sun Cluster software.