Sun Java logo     Previous      Contents      Index      Next     

Sun logo
Sun Java Enterprise System Upgrade Guide for HP-UX  

Chapter 2
Upgrading Java ES Shared Components

This provides information on upgrading shared components for Sun Java™ Enterprise System (Java ES) 2005Q4 release. This chapter contains the following sections:


Shared Component Upgrade Overview

Upgrading shared components for Java ES 2005Q4 (Release 4) should be done as part of a larger upgrade plan, as discussed in Chapter 1, "Planning for Upgrades". To ensure that you have a successful upgrade, read Chapter 1 carefully and prepare an upgrade plan that meets your needs.

About Your Upgrade Plan

Your upgrade plan should cover the following areas:

Technologies for Upgrading Shared Components

There are three technologies for upgrading shared components to Java ES Release 4. The technologies you use depend on the number and type of shared components you are upgrading, according to your upgrade plan.

General Upgrade Procedure

The general steps you take to upgrade shared components are listed below:

  1. From your upgrade plan, determine your upgrade path, the shared components you wish to upgrade, and the sequence for upgrading them. Review the earlier sections in this overview for information on developing an upgrade plan. You can also refer to Upgrade Planning for additional information.
  2. Determine the upgrade technologies available to upgrade the shared components listed in your upgrade plan.
  3. You can find this information in the following section:

    Upgrading Shared Components from Java ES Release 3

  4. Depending on your specific needs, follow the procedures in the following section:

Upgrading Shared Components from Java ES Release 3

Table 2-1 below shows the upgrade technologies to use when upgrading shared components from Java ES (Release 3). Please note the following different upgrade options that are available:

Table 2-1  Upgrade Technologies to Upgrade Shared Components from Java ES Release 3

Shared Component

Upgrade Method

Patch-ID

ANT

Apply specific patch

121508-01

ACL

Unchanged since Release 3

 

BDB

Apply specific patch

121496-01

CACAO

Unchanged since Release 3

 

Derby

Unchanged since Release 3

 

ICU

Apply specific patch

121497-01

IM-SDK

Apply specific patch

121892-01

JAF

Unchanged since Release 3

 

JATO

Apply specific patch

121491-01

Java Help TM

Unchanged since Release 3

 

Java MailTM

Unchanged since Release 3

 

JAXB

Apply specific patch

121498-01.

JAXP

Apply specific patch

121499-01

JAXR

Apply specific patch

121501-01

JAX-RPC

Apply specific patch

121500-01

JCAPI

Apply specific patch

121492-01

JDMK

Apply specific patch

121490-01

JSS

Apply specific patch

121506-01

KTSE

Unchanged since Release 3

 

LDAP C SDK

Unchanged since Release 3

 

LDAP J SDK

Apply specific patch

121494-01

MFWK

Unchanged since Release 3

121489-01

NSPR

Apply specific patch

121502-01

NSS

Apply specific patch

121503-01

SAAJ

Apply specific patch

121507-01

SASL

Apply specific patch

121493-01

SJWC

Replace packages

121495-01

WSCL

Apply specific patch

121509-01

ZLIB

Unchanged since Release 3

 


Upgrading Shared Components by Applying Patches

On HP-UX platforms, many packages for shared components can be upgraded from Java ES 2005Q1 (Release 3) by application of patches that modify the installed packages.

The advantage of patch technology over replacement of packages is that revisions applied by a patch can later be backed out, if needed. Typically, the size of a patch is smaller than the size of an updated package, so it is easier to download and install. Patches are generally more current than the latest available package. The most current revision of a patch is readily available for download from SunSolve, as described in this section.

Table 2-1 shows the patch IDs for all shared component patches used to upgrade to Java ES 2005Q4 (Release 4) from Java ES Release 3.

If your upgrade plan calls for upgrading only a few shared components, you probably want to apply individual patches as described in the following procedure. You can later back out patches you apply, as described following the procedure.

    To apply a patch to upgrade to Java ES 2005Q4
  1. Retrieve the patch from the following location:
  2. http://sunsolve.sun.com.

    Table 2-1 lists the available patch IDs to upgrade each shared component.

  3. Log in as superuser or become superuser by using the su - command.

  4. Note

    Become superuser with su -, not su, to make sure you obtain the complete superuser environment


  5. Before applying the patch, read any special instructions in the README supplied with the patch.
  6. Apply the patch using the swinstall command, as indicated in the following example, which applies the patch to the NSPR shared component:
  7. swinstall 121502-01

    For information on the swinstall command, refer to the swinstall man page.

    To back out a patch you previously applied
  1. Log in as superuser or become superuser by using the su - command.

  2. Note

    Become superuser with su -, not su, to make sure you obtain the complete superuser environment


  3. Back out the patch using the swremove command, as indicated in the following example, which backs out the patch to the NSPR shared component:
  4. swremove 121502-01

  5. For information on the swremove command, refer to the swremove man page.


Upgrading Components by Replacing Packages

Many shared components do not use patch technology to upgrade to Java ES 2005Q4 (Release 4). Instead, you upgrade these components by installing new packages or replacing existing packages with newer versions of the packages. In a few cases, you run special procedures to properly upgrade a shared component.

Upgrade Strategy for Replacement of Packages

The number of shared components you upgrade depends on your upgrade plan and the Java ES components installed on your computer.

For upgrades from Java ES Release 3, you might be either upgrading all components or doing a selective upgrade of product components to Release 4. While you can choose to upgrade only those Java ES shared components needed to support the product components you select to upgrade, it is advisable to upgrade all shared components on your computer. For more information, refer to Shared Component Upgrade Guidelines.


Note

The sequence of upgrading shared components is determined by component interdependencies, which should be reflected in your upgrade plan.


Upgrade Path

The procedures for upgrading shared components by replacement of packages generally do not depend on your upgrade path.

However, the section Packages for HP-UX Platforms contain tables that specify the few instances where the upgrade path determines the procedures you use.

Package Versions

When replacing packages, you should only replace packages with newer versions of those packages. The section Packages for HP-UX Platforms provides information on how to compare package versions before upgrading.

Package Locations

The packages for upgrading most shared components are provided with your Java ES distribution under one of the following directories, depending on your platform:

HPUX_PA-RISC/Product/shared_components/Packages

Localized versions of shared component packages can be found in the following directory:

HPUX_PA-RISC/Product/shared_components/Packages/locale/

Procedures for Replacement of Packages

With few exceptions, packages can be replaced following general procedures. Refer to Upgrading Packages for HP-UX Platforms for procedure.

Special Instructions

Some packages have special instructions for preserving configuration information or other data. Links to special instructions are contained in the package tables listed in the section Packages for HP-UX Platforms.

Packages for HP-UX Platforms

Table 2-2 below lists the HP-UX depot names for shared components that can be upgraded by replacement of packages. The table also lists the versions of the packages available in Java ES Release 4 and special instructions for upgrading the component.

For each shared component, the packages are listed in the sequence you would install them.

You should only replace packages with newer versions. Before you replace a package, compare the version of the package on your system with the version of the package you intend to use to replace it.

To determine the version of an installed package use the swlist command. The output of this command provides the package version.

swlist -a revision <depot name>


Note

The versioning system for different packages varies, but generally a higher number indicates a newer version of the package.

Release 4 Shared Components specifies the full name of shared components listed in Table 2-2.


Table 2-2  Package Versions for Upgrading Shared Components on HP-UX

Shared Component

Depot Names

Version No

Special Instructions

ANT

sun-ant

1.6.2

None

ACL

sun-aclg

Unchanged since Release 3

 

BDB

sun-berkleydatabase, sun-berkleydatabase-java

4.2.52

None

CACAO

sun-cacao sun-cacao-man sun-cacao-cfg

Unchanged since Release 3

 

Derby

sun-derby-core sun-derby-javadoc

Unchanged since Release 3

 

ICU

sun-icu sun-icux

3.2

None

IMSDK

sun-im-dev

7.0

None

JAF

sun-jaf

Unchanged since Release 3

 

JATO

sun-jato, sun-jatodmo, sun-jatodoc

2.1.5

None

Java Help™

sun-javahelpruntime

Unchanged since Release 3

 

Java Mail™

sun-javamail

Unchanged since Release 3

 

JAX-Related Components

JAXB

sun-jaxb

1.0.4

1. Before installation of this patch, ensure that the patches for shared components of JAXP and WSCL are installed.

2. Do not uninstall the dependent packages/patches before uninstalling this patch.

JAXP

sun-jaxp

1.2.6_01

None

JAXR

sun-jaxr

1.0.7

1. Before installation of this patch, ensure that the patches SAAJ and JAX-B are installed.

2. Do not uninstall the dependent packages/patches before uninstalling this patch.

JAX-RPC

sun-jaxrpc

1.1.2

1. Before installation of this patch, ensure that the patches SAAJ and WSCL are installed.

2. Do not uninstall the dependent packages/patches before uninstalling this patch.

JCAPI

sun-jcapi

1.2

None

JDMK

sun-jdmk-runtime and sun-jdmk-runtime-jmx

5.1

None

JSS

sun-jss sun-jssx

4.1

1. Before installation of this patch, ensure that the patch NSS is installed.

2. Do not uninstall the dependent packages/patches before uninstalling this patch.

KTSE

sun-ktsearch

Unchanged since Release 3

 

LDAP C SDK

sun-ldapcsdk sun-ldapcsdkx

Unchanged since Release 3

 

LDAP J SDK

sun-ljdk

1

None

MFWK

sun-mfwk-man sun-mfwk-agent sun-mfwk-cfg

2.0

 

NSPR

sun-nspr sun-nsprx sun-nspr-devel

4.5.2

None

NSS

sun-nss sun-nss-devel sun-nssx sun-nssu sun-nssux

3.10

1. Before installation of this patch, ensure that the patch NSPR is installed.

2. Do not uninstall the dependent packages/patches before uninstalling this patch.

SAAJ

sun-saaj

1.2.1

1. Before installation of this patch, ensure that the patch JAXP is installed.

2. Do not uninstall the dependent packages/patches before uninstalling this patch.

SASL

sun-sasl, sun-saslx

2.18

None

SJWC

sun-mcon

sun-mconr

sun-mcosx

sun-mcos

sun-mctag

2.2.4

 

WSCL

sun-wscl

1.0

None

ZLIB

sun-zlib

Unchanged since Release 3

 

Upgrading Packages for HP-UX Platforms

The following procedure shows the general instructions for upgrading packages on HP-UX platforms by replacement of depots.

A few shared components require special instructions in addition to these general instructions. Table 2-2 provides special instructions for components that require them.


Note

Before making any changes to your system, it is advisable to first backup your system.


    To upgrade packages for shared components on HP-UX platforms by replacement of depots
  1. Log in as superuser or become superuser by using the su - command.

  2. Note

    Become superuser with su -, not su, to make sure you obtain the complete superuser environment.


  3. Check Table 2-2 for special instructions that might apply to the component you are upgrading.
  4. Follow any special instructions before upgrading the package. If no special instructions are indicated, proceed to the next step.

  5. Navigate to the location of the packages in your Java ES Release 4 distribution. The packages are found under one of the following directories:
  6. HPUX_PA-RISC/Product/shared_components/Packages

    HPUX_PA-RISC/Product/shared_components/Packages/locale


    Note

    If you have a subset distribution of Java Enterprise System, this subset distribution contains all the necessary shared components at the location indicated above.


  7. Remove the current versions of the packages that you are upgrading by using the swremove command.
  8. For example, to remove packages for webconsole:

    swremove sun-mcon sun-mconr sun-mcos sun-mcosx sun-mctag

    For detailed information on removing packages, refer to the swremove man page.

  9. Install the packages from your distribution using the swinstall command.
  10. swinstall sun-mcon sun-mconr sun-mcos sun-mcosx sun-mctag

    For detailed information on installing packages, refer to the swinstall man page.

  11. Verify the version of an installed package use the swlist command. The output of this command provides the package version.
  12. swlist -a revision <depot name>

    For detailed information on these commands refer to the swlist man pages.

Upgrading J2SE for Java ES Release 4

Java ES 2005Q4 (Release 4) is certified for Java 2 Platform, Standard Edition (J2SE) Version 5.0.01, identified here as J2SE 5.0. (J2SE 5.0 is sometimes referred to as developer version 1.5.0.01).

Upgrading J2SE on HP-UX Platform

Before proceeding with upgrading J2SE on HP-UX platform, you should determine the version of J2SE currently used by your Java ES installation. For Java ES 2005Q1 (Release 3), the default is J2SE Version 1.5.0. For various reasons, you might have upgraded J2SE from the default versions.

Use the following procedure to determine which version of J2SE your Java ES installation is using.

    To display the J2SE version used by your Java ES installation
  1. Run the following command:
  2. /usr/jdk/entsys-j2se/bin/java -version

  3. Here is an example of the version string displayed for J2SE 1.4.2.03:
  4. java version "1.4.2.03"

    You can upgrade J2SE to 5.0.01 by downloading J2SE 5.0 from the HP-UX Java at:

    http://www.hp.com/products1/unix/java/java2/jdkjre5_0/index.html.

    Java Enterprise System does not use the default J2SE installed on your computer, but instead maintains a symbolic link to the supported version of J2SE. After installing J2SE you might need to update the Java ES symbolic link so it points to the newly installed J2SE.

    The procedures you use to upgrade J2SE depends on whether you are upgrading from J2SE 1.4 or an earlier version of J2SE 5.0. The general steps for HP-UX platforms follow. Details of these steps are in procedures that appear later in this section.

    Follow these steps if you are upgrading from J2SE 1.4.2_03
  1. Install J2SE 5.0.01 or later.
  2. Set the Java ES symbolic link to point to the newly installed J2SE.
    Follow these steps if you are upgrading from an earlier version of J2SE 5.0
  1. Remove the earlier version of J2SE 5.0.
  2. Install J2SE 5.0.01 or later.
  3. Set the Java ES symbolic link to point to the newly installed J2SE.
Starting and Stopping Services

When upgrading J2SE you might want to shut down any services that depend on the currently installed J2SE before proceeding. This is to avoid any problems that might arise with services that are using the current J2SE. If you do not shut down the services that depend on J2SE, after installing J2SE and setting the Java ES symbolic link to it, you should reboot your system.

Installing J2SE 5.0 on HP-UX Platform

You can install J2SE 5.0.01 on HP-UX platform by using the bits available from the HP website.

    To install J2SE 5.0 on HP-UX platform using the HP packages
  1. Navigate to the following location in the HP website to retrieve the current version of JDK 5.0 and the installation instructions:
  2. http://www.hp.com/products1/unix/java/java2/jdkjre5_0/index.html.

  3. Follow the instructions for installation available with the download. Before installing J2SE, you might want to stop services that depend on J2SE, as described in Starting and Stopping Services.
  4. After installation is complete, proceed to the section Setting the J2SE Symlink for Java Enterprise System on HP-UX Platform.
Setting the J2SE Symlink for Java Enterprise System on HP-UX Platform

Java Enterprise System maintains a symbolic link that points to the supported version of J2SE platform. Java Enterprise System maintains this link to ensure that Java ES services can find the correct J2SE runtime to use.

If you upgraded to J2SE 5.0.01 from J2SE 1.4.2_03, then you need to set the symbolic link so it points to the newly installed J2SE 5.0.01. If you upgraded to J2SE 5.0.01 from an earlier version of J2SE 5.0, then you just need to verify that your Java Enterprise System installation is using the updated version.

The following procedures show how to set the Java Enterprise System symbolic link and verify the version of your upgraded J2SE installation.

    To Set the J2SE symbolic link for Java Enterprise System on HP-UX
  1. Reset the /usr/jdk/entsys-j2se symbolic link to point to the newly installed or updated J2SE installation as indicated below:
  2. If you installed J2SE 5.0.01 in the default location, reset the symbolic link as follows:

    rm /usr/jdk/entsys-j2se

    ln -s /opt/java1.5 /usr/jdk/entsys-j2se

    If you installed J2SE 5.0.01 in a non-default location, replace the default path (path /opt/java1.5) with the path to your non-default location.

  3. If you previously stopped services prior to upgrading or installing J2SE 5.0 Update 4, restart the services.
  4. If you did not stop services prior to upgrading or installing J2SE 5.0 you might want to reboot your system so services that depend on J2SE 5.0 use the new symbolic link.



Previous      Contents      Index      Next     


Part No: 819-4460-10.   Copyright 2006 Sun Microsystems, Inc. All rights reserved.