Sun Java logo     Previous      Contents      Index      Next     

Sun logo
Sun Java System Application Server Standard and Enterprise Edition 7 2004Q2 Update 2 Installation Guide 

Appendix A
Upgrading the Application Server

The Sun Java System Application Server installation program is capable of upgrading from a previous installation of the Application Server to the current version.

Consult the Sun Java System Application Server Release Notes to identify the upgrade options available with the Sun Java System Application Server installation program.

The following points should be kept in mind when upgrading the Application Server installation:

This appendix includes the following topics:


Getting Ready to Upgrade

Keep in mind the following points when you are upgrading Application Server:


Upgrading the Standard or Enterprise Edition

The following instructions apply to both file-based and package-based distributions unless specifically identified.

  1. Run the installation program.
    1. To run the installation program in the graphical mode, at the command prompt, type setup.
    2. To run the installation program in the command-line mode, at the command prompt type setup -console.
  2. Follow the installation wizard screens to accept the license agreement, and specify the path to the Application Server installation directory; or accept the default installation directory.
  3. The default installation directory is dependent on the distribution you are installing. For more information, see Packaging Models and Directory Structure.

  4. If you have a previous version of the Application Server installed on your system, the installation program detects it, identifies the upgrade option available, and prompts you to do one of the following:
    • For file-based installation, select a new directory or continue with the upgrade.
    • For package-based and RPM-based installation:
      • If the selected installation directory is the same directory that was used by the previously installed (old) version of the Application Server, select Continue.
      • If the selected installation directory is different from the directory used by the previously installed (old) version of the Application Server, you are prompted to change the directory path to that directory and continue with the upgrade.
  5. In the Component Selection screen, components that are already installed are disabled. Select the additional components you wish to install.
  6. Proceed with the rest of the installation process.


Post-Upgrade Tasks

After the upgrade is completed, do the following:

  1. Stop the database.
  2. If any new options were added during or after the database creation, extract them using the following command:
  3. hadbm get -all

  4. Delete the old database.
  5. Start up the management agent after creating the following directories:
    • /var/opt/SUNWhadb/ma for the management agent
    • /var/opt/SUNWhadb/dbdef for the data files
    • /var/opt/SUNWhadb/repository for the config repository.
    • If you want to change the default directories, the following attributes in the mgt.cfg file need to be changed appropriately: logfile.name, ma.server.dbconfigpath and repository.dr.path along with ma.server.dbdevicepath, and ma.server.dbhistorypath.

  6. Run the clsetup utility with the configuration files appropriately verified. This will recreate the database and configure the application server instances.
  7. Add any options extracted in Step 2, using the following command:
  8. hadbm set

  9. If the database is set up on a remote machine different than the application server machine, the clsetup configuration files need to be appropriately changed before executing the clsetup utility; for example, the agent host and port number may need to be changed.


Troubleshooting

Error condition when Application Server 7 upgrade is in progress may result in an unexpected uninstallation and deletion of product and data files from existing base installation. (Bug #5052938, 5052939)

Under certain conditions, performing an upgrade operation from base installation (that is, SunOne Application Server 7.0) to the version Sun Java System Application Server 7 2004Q2 may result in an automatic product uninstallation, which has the effect of removing the entire product directory from the system. To recover from this error, you must perform a fresh product installation and reconfigure the installation back to its original setup.

Both the file-based and the package-based installation can be affected by this issue.

Application Server 7 uses InstallSDK framework to build the installation program. The current upgrade installation program does not utilize transactional upgrade, meaning that it will not make any distinction between the first time installation of the component and installation over an existing component. As the result, if the upgrade installation fails or is stopped, it will revert to the uninstallation sequence, which will uninstall product files. This is a known behavior of InstallSDK framework.

The upgrade installation program does not create backup copies of files, which are being upgraded in order to be able to revert back to the original state in the case of failed upgrade.

Solution

DO NOT use the upgrade feature of Application Server 7 2004Q2. Instead perform a manual migration as follows:

  1. Stop all user applications.
  2. Back up the existing system and configuration.
  3. Uninstall the existing application server installation (that is, Sun ONE Application Server 7.0).
  4. Install the new product version (i.e., Sun Java System Application Server 7 2004Q2).
  5. Reconfigure and restore the needed files back to the desired setup.
  6. Redeploy all user applications.

If an upgrade is necessary, perform the following steps before initiating an upgrade:

  1. Stop all user applications.
  2. Perform a full system backup or application server system backup.
  3. Stop or limit other processes while the upgrade is in progress.
  4. If the upgrade fails, restore the files from the backup.
  5. Redeploy user applications.



Previous      Contents      Index      Next     


Copyright 2005 Sun Microsystems, Inc. All rights reserved.