Sun Java Enterprise System 5 Upgrade Guide for UNIX |
Chapter 11
Application ServerThis chapter describes how to upgrade Application Server to Java ES 5 (Release 5): Sun Java System Application Server Enterprise Edition 8.2.
The chapter provides an overview of upgrade considerations for the different upgrade paths supported by Release 5. The chapter covers upgrades on both the Solaris and Linux operating systems:
Note
The default Application Server domain name for Release 5 Application Server (8.x) is domain1. In other words, domain1 is the default value of the domainName variable used in this chapter.
In addition, the default Directory Administration Service (DAS) instance name is server. J2EE Applications are not normally deployed to the DAS instance but to other standalone instances.
For more information regarding the asadmin commands used in this chapter, consult the Sun Java System Application Server Enterprise Edition 8.2 Reference Manual, http://docs.sun.com/doc/819-4736.
Overview of Application Server UpgradesThis section describes the following general aspects of Application Server that impact upgrading to Java ES 5 (Release 5):
About Java ES Release 5 Application Server
Java ES Release 5 Application Server represents a minor release with respect to Release 4, including only selected bug fixes. Release 5 Application Server is functionally the same as Release 4.
Application Server Upgrade Roadmap
There are two sets of upgrade paths that apply to upgrade of Application Server to Java ES Release 5:
- Table 11-2 shows the supported Java ES Application Server upgrade paths to Java ES Release 5. The table applies to both Solaris and Linux operating systems.
- Table 11-3 shows the supported Solaris-bundled Application Server upgrade paths to Java ES Release 5. Application Server Platform Edition is bundled with Solaris OS software. Upgrade of the bundled versions of Application Server to Release 5 Enterprise Edition can be performed using the Java ES installer, as indicated in Table 11-3.
Table 11-2 Upgrade Paths to Java ES 5 (Release 5): Application Server Enterprise Edition 8.2
Java ES Release
Application Server Version
General Approach
Reconfiguration Required
Release 4
Sun Java System Application Server Enterprise Edition 8.1 2005Q4
Direct upgrade:
Performed using Java ES installer.1None
Release 3
Sun Java System Application Server Enterprise Edition 8.1 2005Q1
Direct upgrade:
Performed using Java ES installer.None
Release 2
Sun Java System Application Server 7.0 Update 3 (2004Q2)
Platform and Enterprise EditionsDirect upgrade:
Use the Java ES installer to upgrade packages, the postInstall script to perform reconfiguration, and the asupgrade utility to migrate domain information.2Environment variables, domains, and other configuration data.
J2EE components and applications need to be migrated to new Application Server environment and redeployed.
Release 1
Sun ONE Application Server 7.0 Update 1 (2003Q4)
Platform and Enterprise EditionsDirect upgrade not certified:
Use the same approach as in upgrading from Release 2 Application Server.Environment variables, domains, and other configuration data.
J2EE components and applications need to be migrated to new Application Server environment and redeployed.
Pre-dates Java ES releases
No direct upgrade:
But you can upgrade first to Release 3 using procedures in the Java Enterprise System 2005Q1 Upgrade and Migration Guide, http://docs.sun.com/doc/819-0062.Then upgrade from Release 3 to Release 5.
1If you wish to upgrade Application Server from Release 4 to Release 5 without retaining configuration or domains information, you can use the Java ES Release 4 uninstaller to uninstall Release 4 Application Server and then use the Java ES Release 5 installer to freshly install Release 5 Application Server. However, if Release 4 Application Server had been installed using the Configure Later option, then before uninstalling Release 4 Application Server, you must first create a $HOME/.asadminprefs file (where $HOME is the home directory for the user who installs and runs Application Server). The file has the following two lines:
AS_ADMIN_PASSWORD=password
AS_ADMIN_USER=admin2Special care must be taken if you are upgrading from Release 2 Application Server on a Solaris platform because both the Solaris-bundled Application Server and the Java ES Release 2 Application Server coexist on your computer. See Table 11-3 and the note following it.
Note
Special care must be taken if you are upgrading from Release 2 Application Server on a Solaris platform because both the bundled version and the Java ES version of Application Server coexist on your computer. As a result you have to first uninstall the bundled version (and any corresponding domains) before proceeding with the upgrade from the Release 2 version. See Solaris OS Only: Manually Remove the Application Server Packages Bundled with the Operating System.
Application Server Data
The following table shows the type of data that could be impacted by an upgrade of Application Server software.
Application Server Upgrade Strategy
Your strategy for upgrading Application Server generally depends on the many considerations discussed in Chapter 1, "Planning for Upgrades": upgrade path, dependencies between Java ES components, selective upgrade versus upgrade all, multi-instance deployments, and so forth.
This section is to particularize that general discussion to Application Server by presenting issues that might influence your Application Server upgrade plan.
Compatibility Issues
Release 5 Application Server does not introduce any interface changes with respect to Release 4 or Release 3. However, there are major interface changes between Release 5 and Release 2, making Release 5 incompatible with Release 2.
Release 5 Application Server, however, does not support Release 4 Service Registry. If Application Server is upgraded to Release 5, the Service Registry must also be upgraded to Release 5.
Application Server Dependencies
Application Server dependencies on other Java ES components can impact the procedure for upgrading and re-configuring Application Server software. Changes in Application Server interfaces or functions, for example, could require upgraded versions of components upon which Application Server depends. The need to upgrade such components depends upon the specific upgrade path.
Application Server has dependencies on the following Java ES components:
- Shared components. Application Server has dependencies on specific Java ES shared components (see Table 1-9).
- Message Queue. Application Server depends on Message Queue to provide J2EE Java Message Service-compliant asynchronous messaging support.
- High Availability Session Store. Application Server depends upon High Availability Session Store (HADB) to maintain session state information needed to support failover between instances.
- Java DB. Application Server depends upon Java DB as the default developer database and to store sample application data and data required for Enterprise Java Beans timers.
- Web Container (optional dependency). Application Server depends upon web container services for its optional load balancing plugin. This support can be provided either by Java ES Web Server or third-party web containers (such as Apache Web Server, and Microsoft IIS).
Dual Upgrade
Dual upgrades, in which both Application Server and operating system are upgraded (as described in Dual Upgrades: Java ES and Operating System Softwared) can be performed in either of two ways:
Fresh Operating System Installation
- Back up existing Application Server data.
See Application Server Data for the location of essential data.
- Install the new operating system.
The operating system installation can only be on the same computer and will wipe out the existing file system.
- Restore the Application Server data that was backed up in Step 1.
- Install Release 5 Application Server.
Use the procedure documented in the relevant upgrade section of this chapter, depending on the version of Application Server data that was backed up in Step 1.
In-place Operating System Upgrade
- Back up existing Application Server data.
See Application Server Data for the location of essential data.
- Upgrade the operating system.
The upgrade leaves the existing file system in place.
- Upgrade to Release 5 Application Server.
See the relevant section of this chapter, depending on upgrade path.
Upgrading Application Server from Java ES Release 4This section includes information about upgrading Application Server from Java ES 2005Q4 (Release 4) to Java ES 5 (Release 5). The section covers the following topics:
Introduction
When upgrading Java ES Release 4 Application Server to Release 5, consider the following aspects of the upgrade process:
- General Upgrade Approach. The upgrade is performed using the Java ES installer. No reconfiguration of Application Server and no reconfiguration or migration of J2EE components is required to upgrade from Release 4 Application Server to Release 5.
- Upgrade Dependencies. Application Server has dependencies on a number of Java ES shared components (see Table 1-9), all of which are automatically upgraded to Release 5 by the Java ES installer when you perform an upgrade of Application Server. Application Server has a hard upgrade dependency only on the NSS shared component.
In addition, as described in Application Server Dependencies, Release 5 Application Server has dependencies upon Message Queue, HADB, and Java DB. These are hard upgrade dependencies: all must be upgraded to Release 5.
In addition, Application Server is optionally dependent on Java ES Web Server or third-party web containers. However, these are soft upgrade dependencies; upgrade of the web container is optional with respect to upgrade of Application Server to Release 5.
- Backward Compatibility. Release 5 Application Server is backwardly compatible with the Release 4 version.
- Upgrade Rollback. The upgrade to Release 5 cannot be rolled back to Release 4.
- Platform Issues. The general approach for upgrading Application Server is the same on both Solaris and Linux operating systems.
Release 4 Application Server Upgrade
This section describes how to perform an upgrade of Application Server from Java ES Release 4 to Java ES Release 5 on both the Solaris and Linux platform. Where a topic depends on platform-specific procedures, the topic will indicate the operating system to which it applies. The section covers the following topics:
Pre-Upgrade Tasks
Before you upgrade Application Server software you should perform the following tasks:
Verify Current Version Information
You can verify the current version of Application Server by entering the following command:
AppServer8-base/bin/asadmin version --verbose
Upgrade Application Server Dependencies
It is generally recommended that all Java ES components on a computer system (and in a computing environment) be upgraded to Java ES Release 5. Application Server has hard upgrade dependencies on the NSS shared component and on Message Queue, HADB, and Java DB product components.
When upgrading Application Server dependencies, you should do so in the order below (skipping any that might already have been upgraded), before you upgrade Application Server. However, upgrade of shared components as well as Message Queue, HADB, and Java DB is normally achieved automatically by the Java ES installer when upgrading Application Server.
- Shared Components. Instructions for synchronizing Java ES shared components to Release 5 are provided in Upgrading Java ES Shared Components. However, all shared components required by Application Server are upgraded automatically by the Java ES installer when you perform an upgrade of Application Server to Release 5.
- Message Queue. Instructions for upgrading Message Queue to Release 5 are provided in Chapter 10, "Message Queue".
- High Availability Session Store (HADB). Instructions for upgrading HADB are provided in Chapter 9, "High Availability Session Store".
- Java DB. Instructions for upgrading Java DB are provided in Chapter 8, "Java DB".
- Web Container Software (soft upgrade dependency). Instructions for upgrading Web Server are provided in Chapter 7, "Web Server".
Back Up Application Server Data
The Application Server upgrade from Release 4 to Release 5 does not modify configuration data. There is therefore no need to back up current data.
Obtain Required Configuration Information and Passwords
You should know the Application Server administrator user ID and password for your currently installed version.
Upgrading Release 4 Application Server
This section discusses considerations that impact the upgrade procedure for Application Server followed by a description of the procedure itself.
Upgrade Considerations
The upgrade of Application Server software to Java ES Release 5 takes into account the following considerations:
- Any J2EE components running in an Application Server instance should be shut down before you upgrade that instance. However, if load balancing provides for high availability or scalability, this requirement can be relaxed.
- All instances of Application Server running on a single computer (all corresponding to the same installed Application Server image) must be shut down during upgrade of the installed image.
- In multiple node deployments, perform the upgrade procedure on each node or computer that hosts Application Server instances.
Upgrade Procedure
The procedure documented below applies to Application Server instances residing locally on the computer where the upgrade is taking place.
- Log in as root or become superuser.
su -
- Shut down all J2EE components running in the Application Server instances that are to be upgraded.
- Shut down all Application Server instances on the computer that is to be upgraded.
- Stop all running node agents.
AppServer8-base/bin/asadmin stop-node-agent --user admin_ID
nodeagentNamewhere nodeagentName has the form hostName_domainName, but is simply hostName by default.
- Stop the Domain Administration Server (DAS).
AppServer8-base/bin/asadmin stop-domain --user admin_ID
domainName- Stop the PointBase database server (if being used).
AppServer8Config-base/appserver/pointbase/tools/stopserver.sh
- Launch the Java ES installer.
cd Java ES Release 5 distribution/os_arch
./installerwhere os_arch matches your platform, such as Solaris_sparc. (Use the installer -nodisplay option for the command line interface.)
After the Welcome and License Agreement pages are displayed, you will be presented with a component selection page. (When installed components are detected that can be directly upgraded by the Java ES installer, they are shown with a status of “upgradable.”)
- Select Application Server in the component selection page.
As hard upgrade dependencies, Message Queue, HADB, and Java DB will also be automatically selected for upgrade.
- Choose to Configure Now.
- Specify the configuration values requested.
You will be presented with a number of configuration panels.
- Confirm your upgrade choice.
Application Server packages (and, if necessary, those for Message Queue, HADB, and Java DB) will be upgraded and an upgrade summary displayed.
- Exit the Java ES installer.
- Restart the upgraded Domain Administration Server (DAS).
AppServer8-base/bin/asadmin start-domain --user admin_ID
domainName- Restart the upgraded Application Server instances.
AppServer8-base/bin/asadmin start-node-agent --user admin_ID
nodeagentNamewhere nodeagentName has the form hostName_domainName, but is simply hostName by default.
Verifying the Upgrade
You can verify successful upgrade using the following command:
AppServer8-base/bin/asadmin version --verbose
See Table 11-5 for output values.
Post-Upgrade Tasks
If you want to continue using the embedded Release 4 PointBase database in stead of Java DB, a new Release 5 Java ES product component, you have to manually edit the upgraded AppServer8-base/config/asenv.conf file.
After upgrading Application Server from Release 4, the PointBase settings in asenv.conf are as follows:
Change these settings to the following values:
AS_POINTBASE="AppServer8-base/pointbase"
AS_POINTBASE_SAMPLESDB="AppServerConfig8-base/var/appserver/pointbase"Rolling Back the Upgrade
Rollback of the Release 5 upgrade is not supported.
Upgrading Application Server from Java ES Release 3The procedure for upgrading Java ES 2005Q1 (Release 3) Application Server to Release 5 is the same as that for upgrading Release 4 Application Server to Release 5.
To upgrade Release 3 Application Server to Release 5, use the instructions in Upgrading Application Server from Java ES Release 4, except substitute Release 3 wherever Release 4 is referenced.
Upgrading Application Server from Java ES Release 2This section includes information about upgrading Application Server from Java ES Release 2 to Java ES 5 (Release 5). The section covers the following topics:
Note
If you are upgrading from Release 2 Application Server on the Linux platform, then you will have to perform a dual upgrade, in which both Application Server and the operating system are upgraded (Release 5 Application Server is not supported on RHEL 2.1). See Dual Upgrade for more information.
Introduction
When upgrading Java ES Release 2 Application Server to Release 5, consider the following aspects of the upgrade process:
- General Upgrade Approach. The upgrade is performed by installing Release 5 Application Server using the Java ES installer and choosing the configure later option. Reconfiguration is subsequently achieved using the asupgrade utility. Following the Application Server upgrade you have to migrate Release 2 J2EE components and applications to Release 5.
- Upgrade Dependencies. Upgrade of any Java ES component on a computer from Release 2 requires the upgrade of all other Java ES components hosted by the computer; selective upgrade of Java ES components from Release 2 to Release 5 is not supported.
In particular, all Java ES shared components required by Application Server must be upgraded. Message Queue, if residing on the same computer, must also be upgraded. High Availability Session Store (HADB) and Java DB must be installed, and if Web Server is being used for load balancing, it also must be upgraded.
- Backward Compatibility. Release 5 Application Server is not backwardly compatible with the Release 2 version. J2EE components and applications need to be migrated run in a Release 5 Application Server environment.
- Upgrade Rollback. Rollback of the Release 5 upgrade to Release 2 is achieved by simply reverting back to the Release 2 installation (Release 2 configuration data is not removed by the upgrade process).
- Platform Issues. The approach for upgrading Application Server on the Solaris OS cannot be directly applied to the Linux OS: Java ES Release 2 is only supported on Linux2.1, while Java ES Release 5 is not supported on Linux2.1. Hence a dual upgrade is required: both the operating system and Application Server must be upgraded (see Dual Upgrades: Java ES and Operating System Softwared)
- Data Locations. There are new Release 5 locations of configuration data, deployment data, and access log files, as specified in Table 11-4.
Release 2 Application Server Upgrade
This section describes how to perform an upgrade of Application Server from Java ES Release 2 to Java ES Release 5 on both the Solaris and Linux platform. Where a topic depends on platform-specific procedures, the topic will indicate the operating system to which it applies. The section covers the following topics:
Pre-Upgrade Tasks
Before you upgrade Application Server you should perform the following tasks:
Solaris OS Only: Manually Remove the Application Server Packages Bundled with the Operating System
The installation of Release 2 Application Server did not remove the version of Application Server bundled with the Solaris OS. To properly upgrade Release 2 Application Server to Release 5, you have to perform the following steps.
- Uninstall the bundled version of by manually removing the corresponding Application Server packages located in the /usr/appserver directory:
pkgrm SUNWascmnse SUNWaslb SUNWasut ...
where the full set of packages can be obtained using the following command:
pkginfo -i|grep -i “application server”
The results would include packages such as:
SUNWasacee, SUNWascmnse, SUNWasu, SUNWasuee, SUNWasac, SUNWascmn, SUNWasdb, SUNWasdem, SUNWasdemdb, SUNWasr, SUNWasut, SUNWasman, SUNWasjdoc
and might include localization packages as well:
SUNWLocaleasacee, SUNWLocaleascmnse, SUNWLocaleasu, SUNWLocaleasuee
- If the bundled version has been used, delete the domains information:
rm /usr/appserver/domains
Verify Current Version Information
You can verify the current version of Application Server by entering the following command:
AppServer7-base/bin/asadmin version --verbose
See Table 11-5 for version outputs.
Upgrade Application Server Dependencies
The upgrade of Application Server dependencies requires the upgrade to Release 5 of all locally-resident Release 2 components upon which Application Server depends, specifically Message Queue and shared components. Shared components, however, are upgraded automatically by the Java ES installer as part of the upgrade procedure (see Upgrade Procedure).
In addition, the upgrade of Application Server requires that HADB, and Java DB, upon which Release 5 Application Server depends, be installed. These product components, however, are automatically selected and installed by the Java ES installer as part of the upgrade procedure (see Upgrade Procedure).
In general, when upgrading Application Server dependencies, you should do so in the order below (skipping any that might already have been upgraded), before you upgrade Application Server. However, upgrade of shared components as well as installation of HADB,and Java DB are performed automatically by the Java ES installer when upgrading Application Server.
- Shared Components. Instructions for synchronizing Java ES shared components to Release 5 are provided in Upgrading Java ES Shared Components. However, all shared components required by Application Server are upgraded automatically by the Java ES installer when you perform an upgrade of Application Server to Release 5.
- Message Queue. See Upgrading Message Queue from Java ES Release 2. Message Queue cannot be upgraded from Release 2 using the Java ES installer.
- High Availability Session Store (HADB). A fresh install of HADB is performed by the Java ES installer when upgrading Application Server.
- Java DB. A fresh install of Java DB is performed by the Java ES installer when upgrading Application Server.
- Web Container Software (soft upgrade dependency). See Upgrading Web Server from Java ES Release 2.
Back Up Application Server Data
The Application Server upgrade from Release 2 to Release 5 does not overwrite Release 2 configuration data. However, for safe measure, the entire domains directory should be backed up before performing the upgrade to Release 5:
Obtain Required Configuration Information and Passwords
You should know the following information about your currently installed version:
Upgrading Release 2 Application Server
This section discusses considerations that impact the upgrade procedure for Application Server followed by a description of the procedure itself.
Upgrade Considerations
The upgrade of Application Server software to Java ES Release 5 takes into account the following considerations:
- Any J2EE components running in an Application Server instance should be shut down before you upgrade that instance. However, if you use load balancing to provide high availability or scalability, this requirement might be relaxed.
- All instances of Application Server running on a single computer (all corresponding to the same installed Application Server image) must be shut down while the installed image is being upgraded.
Upgrade Procedure
The procedure documented below applies to all Application Server instances residing locally on the computer where the upgrade is taking place.
- Log in as root or become superuser.
su -
- If Java ES shared components have been upgraded to Release 5 (in particular J2SE upgraded to JDK 1.5) while Release 2 Application Server was still running, then edit the asenv.conf file to point directly to JDK 1.4.
AS_JAVA=/usr/java
Application Server cannot be shut down (Step 3, below) if asenv.conf is referencing JDK 1.5.
- Stop all Application Server and related processes.
AppServer7-base/bin/asadmin stop-appserv domainName
- Install Release 5 Application Server.
Perform the following steps:
- Launch the Java ES installer on the computer hosting Release 2 Application Server.
cd Java ES Release 5 distribution/os_arch
./installerwhere os_arch matches your platform, such as Solaris_sparc. (Use the installer -nodisplay option for the command line interface.)
After the Welcome and License Agreement pages are displayed, you will be presented with a component selection page. (When installed components are detected that can be directly upgraded by the Java ES installer, they are shown with a status of “upgradable.”) Application Server is not shown as upgradable from Release 2.
- Select Application Server from the component selection page.
Choose to install at least the first three subcomponents, including the Node Agent component.
- Click Next.
If Message Queue has not already been upgraded to Release 5, an error message window asks you to upgrade Message Queue. In that case, click OK and upgrade Message Queue. The procedure is documented in Release 2 Message Queue Upgrade.
- Specify an installation directory different from that in which Release 2 Application Server was installed.
- Select the Configure Later option.
Note
If you are the version of Application Server bundled with Solaris 9 OS, and have never used this version (no domain information has been created), then you can select Configure Now and omit Step 5 and succeeding steps.
- If needed, select the option to install localized packages.
- Exit the Java ES installer when installation is complete.
- Perform the following post-install procedure:
- Locate the postInstall readme file in the Application Server tools directory of the Java ES Release 5 distribution:
Java ES Release 5 distribution/os_arch/Product/application_svr/Tools
where os_arch matches your platform, such as Solaris_sparc.
- Refer to the ReadMe file and run the postInstall script.
cd Java ES Release 5 distribution/os_arch/Product/application_svr/Tools
./postInstall AppServer8Install-base AppServer8Config-baseThe scripts configure and create the AppServer8-base/bin/* shell scripts and a config/asenv.conf file from templates that are installed during installation. (Normally the Java ES installer creates the bin/* shell scripts, but if Configure Later is chosen, they have to be created as described.)
Note
When you upgrade Application Server to Release 5, non-admin ports 8080 (default) and 8181 (secure) are allocated to the Domain Administration Server (DAS). These port assignments could possibly conflict with the ports allocated to Release 2 Application Server instances. If this is the case, then you must change the DAS ports to avoid the conflict. For instructions, see the section on how to modify http-listener attributes in the Sun Java System Application Server Enterprise 8.2 Edition Administration Guide, http://docs.sun.com/doc/819-4733.
- If necessary, modify the environment settings in the AppServer8-base/config/asenv.conf file.
You have to edit the file manually.
Note
To configure Application Server for load balancing, refer to the “Configuring Web Servers for HTTP Load Balancing” section in the “Application Server High Availability Features” chapter of the Sun Java System Application Server Enterprise 8.2 Edition High Availability Administration Guide, http://docs.sun.com/doc/819-4740.
- Run the asupgrade utility.
The asupgrade utility creates a Release 5 node agent under which it migrates Release 2 Application Server instances.
The utility is located under the Application Server directory, for example:
- Upgrade wizard mode: AppServer8-base/bin/asupgrade
- Upgrade console mode: AppServer8-base/bin/asupgrade -c
The upgrade wizard or upgrade console will guide you through the upgrade steps.
- Identify both target and source directories for the migration of domains information:
- Provide the admin user, admin password, and master password of Release 2 Application Server.
If asked for a master password, specify changeit, and if you are using a keystore that has a master password other than changeit you should change the password to changeit.
jdk-home/bin/keytool -storepasswd -new changeit -keystore keystore -storepass oldpasswd
For more information about the Application Server asupgrade utility, refer to the user commands section of the Sun Java System Application Server Enterprise Edition 8.2 Reference Manual, http://docs.sun.com/doc/819-4736. and the Sun Java System Application Server Enterprise Edition 8.2 Upgrade and Migration Guide, http://docs.sun.com/doc/819-4737/6n6sao3ju?a=view.
- If you had redirected the asenv.conf file in Step 2, restore it to point to JDK 1.5.
AS_JAVA=/usr/jdk/entsys-j2se
Application Server cannot be started (Step 8 and Step 9, below) if asenv.conf is referencing JDK 1.4.
- Start the Domain Administration Server (DAS).
AppServer8-base/bin/asadmin start-domain --user admin_ID
domainName- Restart upgraded Application Server instances.
Do this by starting the node agent under which the upgraded Application Server instances have been migrated:
AppServer8-base/bin/asadmin start-node-agent --user admin_ID
nodeagentNamewhere nodeagentName has the form hostName_domainName, but is simply hostName by default.
Verifying the Upgrade
Start the Admin Console and verify that these servers are started. If any of the servers are not running, check the following log file for failures that might be caused by port conflicts:
If there failures due to port conflicts, use the Admin Console to modify the port numbers to eliminate the conflicts, then stop and restart the node agent.
You can verify the upgrade of Application Server to Release 5 by entering the following command:
AppServer8-base/bin/asadmin version --verbose
See Table 11-5 for output values.
Post-Upgrade Tasks
There are two post-upgrade tasks you have to perform beyond the steps described in Upgrade Procedure:
Correct the Reference to JSS
For Application Server to reference the correct version of the JSS shared component, you have to replace jss3.jar with jss4.jar in the Application Server domain.xml file located at:
AppServer8Config-base/domains/domainName/config/domain.xml
Migrate Release 2 J2EE Components
You have to migrate Release 2 J2EE components and applications to run in a Release 5 Application Server environment and redeploy them to the appropriate Application Server instances. For more information about migrating J2EE components and applications, refer to Chapter 4 of the Application Server Enterprise Edition 8.2 Upgrade and Migration Guide, http://docs.sun.com/doc/819-4737.
Rolling Back the Upgrade
The procedure for rolling back the upgrade to Release 5 of Application Server is simply to revert to the Release 2 version of Application Server, which was not removed by the upgrade to Release 5.
Upgrading the Solaris-bundled Application Server in a Solaris 10 Multi-zone EnvironmentApplication Server (as well as Message Queue, upon which Application Server depends), is bundled with the Solaris 10 OS. Unless removed from the global zone, the bundled Application Server is propagated to non-global zones when such zones are created. The existence of the bundled Application Server in all zones impacts the subsequent upgrade of Application Server to Release 5:
- Upgrading Application Server in the global zone, removes the bundled version in the global zone and automatically removes the bundled version from all non-global zones.
- Upgrading Application Server to Release 5 in the global zone does not upgrade Application Server in non-global zones because Release 5 Application Server packages are not propagated.
The following example is provided to document some of the subtleties involved in upgrading Application Server in a Solaris 10 multi-zone environment. (For a more comprehensive discussion regarding Java ES and Solaris 10 zones, see Java ES 5 Upgrade and Solaris 10 Zones.)
The objective in the example is to upgrade to Release 5 the Solaris-bundled Application Server (version 8.0.0_01) in a Solaris 10 sparse root zone.
You cannot simply upgrade Application Server in a sparse root zone because the Solaris-bundled Application Server is installed in a read-only directory mounted from the global zone. Hence, to upgrade Application Server to Release 5 in the sparse root zone, you must first remove the bundled version in the global zone.
In addition, Message Queue is installed in the global zone, representing a departure from the practice by which only shared components (not product components) are to be installed in the global zone. This is because Message Queue cannot be installed or upgraded in a sparse root zone because of the read-only directories.
The procedure for upgrading the Solaris-bundled Application Server (version 8.0.0_01) in a Solaris 10 sparse root zone to Release 5 is as follows:
- Verify the initial state of your system.
This example assumes a version of Solaris 10 with a sparse root zone that has been configured, installed, and booted by the global administrator.
The sparse root zone includes all Java ES components that are already installed in the global zone, namely the versions of Message Queue and Application Server bundled with Solaris 10.
In addition, the example assumes that the user has previously used the bundled Application Server in the sparse root zone, having created administrative domain information that needs to be preserved.
- Upgrade the bundled version of Application Server in the global zone.
This operation removes the bundled Application Server packages and replaces them with Release 5 packages. The removal of the bundled packages is propagated to the sparse root zone, effectively uninstalling Application Server packages in the sparse root zone, but the Release 5 packages are not propagated to non-global zones.
- Run the Java ES installer in the global zone.
- Select Application Server in the component selection page.
Message Queue, HADB, and Java DB will automatically be selected, and Application Server and Message Queue will be marked as upgradable.
- Complete the upgrade.
While Release 5 Message Queue will propagate to the sparse root zone, neither Application Server, HADB, nor Java DB will be propagated. In addition all shared components will be synchronized to Release 5 and propagated to the sparse root zone.
- Install Application Server in the sparse root zone.
- Run the Java ES installer in the sparse root zone.
- Select Application Server in the component selection page.
De-select Message Queue if it is automatically selected, and select HADB and Java DB if they are not automatically selected.
- Complete the installation of Application Server.
Choose to Configure Later so that domain information is not overwritten by the installation process.
In the case where no domains had been created, you can choose to Configure Now.c