Sun Java logo     Previous      Contents      Index      Next     

Sun logo
Sun Java Enterprise System 2005Q1 Upgrade and Migration Guide 

Chapter 2
Upgrading Shared Components

This chapter provides the procedures to upgrade shared components from previous Java Enterprise System versions to the Sun Java™ Enterprise System (Java ES) software 2005Q1 release. This chapter details these procedures in the following sections:


Applying Solaris Shared Component Patch Clusters

There are three shared component clusters for this release. Depending on which version of Solaris you are running you will need to apply one or possibly more of these clusters. They are:

Patch Cluster Contents lists the contents of each patch cluster.


Note

Before upgrading Share Components, it may be necessary to apply OS patches, for example, the latest Recommended and Security patch cluster.


    To Apply Solaris Shared Components Patch Clusters
  1. You can obtain the Shared Component clusters via SunSolve. See:
  2. http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/patch-access


    Note

    To Apply Shared Components Patch Clusters, first you have to download and extract the cluster before applying. Become superuser with “su -” not su to avoid tainting the superuser environment with user environment.


  3. Become root by running su - and entering the super-user password.
  4. Read the README which will contain important instructions and other last minute information about the patch.

  5. Note

    Before installing the shared component patch cluster, you must first remove the following packages: SUNWjato, SUNWjaxp, SUNWjaf, SUNWjmail, SUNWxrgrt, SUNxrpcrt, and SUNWxsrt.SUNWxrgrt does not exist on Solaris 8 with installed IS 6.2.

    You may remove these packages by running the following command:

    pkgrm SUNWjato SUNWjaxp SUNWjaf SUNWjmail SUNWxrgrt SUNWxrpcrt SUNWxsrt

    Once these packages have been removed, you may proceed with installing the shared component patch cluster.


  6. Run the install_cluster script which will install all the appropriate patches.
  7. The README contains the specific instructions for installing the patch.


    Note

    Install the Java Enterprise System 2005Q1 required shared component patch cluster specific to your operating system.

    You can obtain the patches individually and install them if you prefer. (SeePatch Cluster Contents.) In this case you should obtain each patch individually from SunSolve and follow the installation instructions for that patch.


    To Remove Solaris Shared Components Patch Clusters
  1. Backout the appropriate patch by using the patchrm(1m) command.

  2. Note

    Patches that contained packages (see Patch Cluster Contents) have install packages on your system. Use the pkgrm(1m) command to remove the packages.


Patch Cluster Contents

Table 2-1 through Table 2-3 list the shared component cluster contents and descriptions.


Note

All patches referred to in this section are the minimum version number required for upgrade. It is possible that a new version of the patch has been issued since this document was published. A newer version is indicated by a different version number at the end of the patch. For example: 123456-04 is a newer version of 123456-02 but they are the same patch ID. Refer to the README file for each patch listed for special instructions.


Java Enterprise System Required Component Patch Solaris 8 SPARC

This required component patch cluster contains the following files:

java_es_required_comp_patches_solaris8-sparc.zip

java_es_required_comp_patches_solaris8-sparc.README

Table 2-1 lists the patches contained in this cluster and their descriptions.

Table 2-1  Required Shared Component Patch Solaris 8 SPARC 

Patch ID

Description

114045-12

Security 3.3.4.x

115328-01

Simple Authentication and Security Layer

117722-10

Security 3.9.x

116103-06

SunOS: International Components for Unicode Patch

117024-03

KT Search Engine

116837-02

LDAP C SDK 5.11

117722-09

NSPR 4.5.0 / NSS 3.9.3 / JSS 4.0

118605-01

JAXP patch containing packages

118607-01

JavaMail patch containing packages

118609-01

Java Activation Framework patch containing packages

118611-01

JATO patch containing packages

118613-01

JCAPI patch containing packages

118615-01

LDAP JDK patch containing packages

118618-01

JSS patch containing packages

118661-01

JAXR patch containing packages

118662-01

JAX-RPC patch containing packages

118663-01

JAXB patch containing packages

118664-01

SOAP with Attachments API for Java patch containing packages

118665-01

Common Libraries for Web Services Components patch containing packages

Java Enterprise System Required Component Patch Solaris 9 SPARC

This required component patch cluster contains the following files:

java_es_required_comp_patches_solaris9-sparc.zip

java_es_required_comp_patches_solaris9-sparc.README

Table 2-2 lists the patches contained in this cluster and their descriptions.

Table 2-2  Required Shared Component Patch Solaris 9 SPARC 

Patch ID

Description

114049-12

Security 3.3.4.x

114677-08

SunOS 5.9: International Components for Unicode Patch

115342-01

Simple Authentication and Security Layer (2.01)

117724-10

Security 3.9.x

117024-03

KT Search Engine

116837-02

LDAP C SDK 5.11

117724-09

NSPR 4.5.0 / NSS 3.9.3 / JSS 4.0

118605-01

JAXP patch containing packages

118607-01

JavaMail patch containing packages

118609-01

Java Activation Framework patch containing packages

118611-01

JATO patch containing packages

118613-01

JCAPI patch containing packages

118615-01

LDAP JDK patch containing packages

118618-01

JSS patch containing packages

118661-01

JAXR patch containing packages

118662-01

JAX-RPC patch containing packages

118663-01

JAXB patch containing packages

118664-01

SOAP with Attachments API for Java patch containing packages

118665-01

Common Libraries for Web Services Components patch containing packages

Java Enterprise System Required Component Patch Solaris 9 x86

This required component patch cluster contains the following files:

java_es_required_comp_patches_solaris9-x86.zip

java_es_required_comp_patches_solaris9-x86.README

Table 2-3 lists the patches contained in this cluster and their descriptions.

Table 2-3  Required Shared Component Patch Solaris 9 x86 

Patch ID

Description

114050-12

Security 3.3.4.x

114678-08

SunOS 5.9_x86: International Components for Unicode Patch

117725-10

Security 3.9.x

117024-03

KT Search Engine

116838-02

LDAP C SDK 5.11

117725-09

NSPR 4.5.0 / NSS 3.9.3 / JSS 4.0

118605-01

JAXP patch containing packages

118607-01

JavaMail patch containing packages

118609-01

Java Activation Framework patch containing packages

118611-01

JATO patch containing packages

118613-01

JCAPI patch containing packages

118615-01

LDAP JDK patch containing packages

118619-01

JSS patch containing packages

118661-01

JAXR patch containing packages

118662-01

JAX-RPC patch containing packages

118663-01

JAXB patch containing packages

118664-01

SOAP with Attachments API for Java patch containing packages

118665-01

Common Libraries for Web Services Components patch containing packages


Applying Linux Shared Component RPMs

On Linux systems, many components products require that the Java Enterprise System 2004Q2 shared components be updated. You must download the appropriate RPMs and load them on your system. This section details these procedures in the following sections:

    To Apply Linux Shared Component RPMs
  1. Obtain the necessary RPMs from the Java Enterprise System 2005Q1 distribution. They are found typically under the following directory:
  2. Linux_x86/Product/shared_components/Packages/

  3. Get all required shared component RPMs. Table 2-4 lists the available shared component RPMs.
  4. Table 2-4  Shared Component RPMs 

    Component

    RPM Name and Version

    ICU

    sun-icu-2.1-9.i386.rpm

    NSPR

    sun-nspr-4.5.1-2.i386.rpm

    NSPR-DEVEL

    sun-nspr-devel-4.5.1-2.i386.rpm

    NSS

    sun-nss-3.9.5-1.i386.rpm

    NSS-DEVEL

    sun-nss-devel-3.9.5-1.i386.rpm

    JSS

    sun-jss-4.0-5.i386.rpm

    SASL

    sun-sasl-2.02-2.i386.rpm

    LDAP-C-SDK

    sun-ldapcsdk-5.12-3.i386.rpm

    LDAP-JDK

    sun-ljdk-4.17-3.i386.rpm

    JAXB

    sun-jaxb-1.0.4-6.i386.rpm

    JAXP

    sun-jaxp-1.2.6-4.i386.rpm

    JAXR

    sun-jaxr-1.0.7-5.i386.rpm

    JAXRPC

    sun-jaxrpc-1.1.2-41.i386.rpm

    SAAJ

    sun-saaj-1.2.1-6.i386.rpm

    WSCL

    sun-wscl-1.0-4.i386.rpm

    ktsearch

    sun-ktsearch-1.3-3.noarch.rpm

    JATO

    SUNWjato-2.1.4.i386.rpm

    SUNWmcon

    SUNWmcon-2.2-1.i386.rpm

    JDK 5.0

    jdk-1_5_0_01-linux-i586.rpm

    ANT

    sun-ant-1.5.4-25.i386.rpm

    JAF

    sun-jaf-1.0.3-5.i386.rpm

    Javahelp

    sun-javahelp-2.0-fcs.i586.rpm

    Javamail

    sun-javamail-1.3.2-34.i386.rpm

    JDMK

    sun-jdmk-runtime-5.1-34.i386.rpm

    HADB:

    sun-hadb-a-4.4.1-7.rpm  sun-hadb-c-4.4.1-7.rpm
    sun-hadb-e-4.4.1-7.rpm   sun-hadb-i-4.4.1-7.rpm
    sun-hadb-j-4.4.1-7.rpm  sun-hadb-m-4.4.1-7.rpm
    sun-hadb-o-4.4.1-7.rpm  sun-hadb-s-4.4.1-7.rpm
    sun-hadb-v-4.4.1-7.rpm  sun-hadb-x-4.4.1-7.rpm

  5. Install all appropriate RPMs for your situation (except LDAP JDK) using the rpm -Uvh command (option -U to update existing rpm, -vh for verbose mode). Refer to Understanding Shared Product Dependencies for a listing by product. For example:
  6. # cd <rpm location>
    # rpm -Uvh sun-icu-2.1-9.i386.rpm
    # rpm -Uvh sun-nspr-4.5.1-2.i386.rpm
    # rpm -Uvh sun-nss-3.9.4-1.i386.rpm
    # rpm -Uvh sun-jss-4.0-5.i386.rpm
    # rpm -Uvh sun-sasl-2.02-2.i386.rpm
    # rpm -Uvh sun-ldapcsdk-5.12-3.i386.rpm

    As LDAP-JDK is a brand new rpm, install it with rpm -ivh command (option -i for install, -vh for verbose mode).

    # rpm -ivh sun-ljdk-4.17-3.i386.rpm


    Note

    Install these four RPMs using one rpm -Fvh command in this order.

    sun-nspr
    sun-nspr-devel
    sun-nss
    sun-nss-devel

    For example:

    # rpm -Fvh sun-nspr-4.5.1-2.i386.rpm sun-nspr-devel-4.5.1-2.i386.rpm sun-nss-devel-3.9.5-1.i386.rpm sun-nss-3.9.5-1.i386.rpm



    Note

    Removal of upgraded shared component RPMs is not supported.



Upgrading J2SE Packages

This section contains procedures to upgrade to J2SE™ platform 5.0 (Java 2 Platform, Standard Edition) on Solaris and Linux environments. It contains the following:

Upgrading on Solaris

Use these procedures to upgrade to J2SE™ platform 5.0 (Java 2 Platform, Standard Edition) on Solaris platforms. This section contains:

    To Obtain J2SE 5 JDK
  1. Obtain J2SE 5 from either of the following sources:
    1. The new version of J2SE that has been certified with Java Enterprise System 2005Q1 components is located under the following directory in the Java Enterprise System 2005Q1 distribution.
    2. Solaris_<arch>/Product/shared_components/Packages where <arch> = sparc|x86

      The packages named SUNWj5* are the packages that make up J2SE.

    3. Download J2SE 5 JDK from Sun java.sun.com:
    4. http://java.sun.com/j2se/1.5.0/download.html

      Read the installation instructions and release notes. Click Download JDK and follow the instructions to obtain the appropriate version of the software.

      Extract the contents of the compressed tar file:

      On SPARC processors:

      zcat jdk-1_5_0-solaris-sparc.tar.Z | tar xf -

      On x86 processors:

      zcat jdk-1_5_0-solaris-i586.tar.Z | tar xf -

This creates several directories (SUNWj5rt, SUNWj5dev, SUNWj5cfg, SUNWj5man, SUNWj5dmo, and SUNWj5jmp) plus a few files in the current directory.

    To Install the J2SE 5 Packages
  1. Become superuser by running su and entering the super-user password.
  2. Shutdown Java Enterprise System services that depend on J2SE.
  3. If necessary, uninstall any earlier 5.0 package installation of JDK.

  4. Note

    If your machine has an earlier version of 5.0 already installed in the default location (/usr/jdk/jdk1.5.0), you must remove it before installing a later version of 5.0 at that location.

    J2SE 5 installation notes can also be found at:

    http://java.sun.com/j2se/1.5.0/install-solaris.html#notes


    You can skip this step if you intend to install JDK 5.0 in a non-default location. For more details, see:

    http://java.sun.com/j2se/1.5.0/install-solaris.html#notes

    To uninstall the Solaris packages for JDK 5.0, remove them by running:

    pkgrm SUNWj5rt SUNWj5dev SUNWj5cfg SUNWj5man SUNWj5dmo SUNWj5rtx SUNWj5dvx

  5. Run the pkgadd command to install the packages.
  6. On x86 processors, run:

    pkgadd -d . SUNWj5rt SUNWj5dev SUNWj5cfg SUNWj5man SUNWj5dmo

    On SPARC processors, run:

    pkgadd -d . SUNWj5rt SUNWj5dev SUNWj5cfg SUNWj5man SUNWj5dmo SUNWj5rtx SUNWj5dvx

    This installs the JDK 5.0 into /usr/jdk/jdk1.5.0_01. Version 5.0 does not automatically become the default Java platform on Solaris 9 or earlier (unless there was no default), but does become the default on Solaris 10. If you want 5.0 to be the default on Solaris 8 or 9, follow the instructions at To Set the Default Java Platform (Optional).

    See the pkgadd(1) and admin(4) man pages for information on installing the JDK in a non-default location.

  7. For Japanese users: Install man pages.
  8. If your machine has an earlier version of the 5.0 Japanese man pages already installed in /usr/jdk/jdk1.5.0, you must remove that package before installing a later version of the 5.0 Japanese man pages at that location. Remove this package by running:

    pkgrm SUNWj5jmp

    Then run the pkgadd command to install the new Japanese man page package:

    pkgadd -d . SUNWj5jmp

  9. Exit the root shell. There is no need to reboot.
    To Set the J2SE Symlink


Note

You may elect to continue running some Java Enterprise System services on the previous version of J2SE. Consult the appropriate component product administration guides to do so. For example, you can change the J2SE pointer used by an Application Server instances from /usr/jdk/entsys-j2se (which would now be pointing to 1.5) to the previous version that is already on the system.


  1. Shutdown Java Enterprise System services that depend on J2SE.
  2. Reset the /usr/jdk/entsys-j2se symbolic link to point to the new J2SE installation.
  3. If you upgraded the version of J2SE installed under /usr/j2se, then reset the symbolic link as follows:

    # rm /usr/jdk/entsys-j2se
    # ln -s /usr/j2se /usr/jdk/entsys-j2se

    If you installed the new version of J2SE in the non-default location, then reset the symbolic link as follows:

    # rm /usr/jdk/entsys-j2se
    # ln -s /usr/jdk/instances/jdk1.5.0 /usr/jdk/entsys-j2se

  4. Start Java Enterprise System services that depend on J2SE.
    To Set the Default Java Platform (Optional)


Note

You are not required to set the default Java platform. If you chose to do so, follow these instructions.


  1. Shutdown Java Enterprise System services that depend on J2SE.
  2. Determine the default Java platform.
  3. Several versions of the Java platform can be present simultaneously on a Solaris system (using the default Solaris package installations), but only one can be the “default” Java platform. To determine the default version of java, run:

    /usr/java/bin/java -fullversion

  4. Set JDK 5.0 to be the default on Solaris 8 and Solaris 9.
  5. For example, make JDK 5.0 the default Java platform by modifying the /usr/java symbolic link to point to /usr/jdk/jdk1.5.0.

    rm /usr/java
    ln -s jdk1.5.0_01 /usr/java

  6. Ensure that running java -fullversion on the command line returns: java full version 1.5.0_01-b08.
  7. Otherwise if you want to use JDK 5.0, /usr/jdk/jdk1.5.0_01/bin should be on your PATH before /usr/bin.

  8. Start Java Enterprise System services that depend on J2SE.

Upgrading on Linux

This section contains overview procedures to upgrade to J2SE™ platform 5.0 (Java 2 Platform, Standard Edition) on Linux platforms. This section contains:

JDK 5.0 is available in two installation formats.

Choose the install format that is most suitable to your needs.


Note

For any text on this page containing the following notation, you must substitute the appropriate JDK update version number for the notation.

<version>

For example, if you are downloading update 1.5.0_01, the following command:

./jdk-1_5_0_<version>-linux-i586.bin

would become:

./jdk-1_5_0_01-linux-i586.bin


    To Install the Self-Extracting Binary
  1. Download and check the download file size to ensure that you have downloaded the full, uncorrupted software bundle.
  2. You can download to any directory you choose; it does not have to be the directory where you want to install the JDK.

    Before you download the file, notice its byte size provided on the download page on the web site. Once the download has completed, compare that file size to the size of the downloaded file to make sure they are equal.

  3. Make sure that execute permissions are set on the self-extracting binary. Run this command:
  4. chmod +x jdk-1_5_0_<version>-linux-i586.bin

  5. Change directory to the location where you would like the files to be installed.
  6. The next step installs the JDK into the current directory.

  7. Run the self-extracting binary.
  8. Execute the downloaded file, prepended by the path to it. For example, if the file is in the current directory, prepend it with “./” (necessary if “.” is not in the PATH environment variable):

    ./jdk-1_5_0_<version>-linux-i586.bin

    The binary code license is displayed, and you are prompted to agree to its terms.

    The JDK files are installed in a directory called jdk1.5.0_<version> in the current directory. Follow this link to see its directory structure. The JDK documentation is a separate download.

    To Install the RPM File

Use these instructions if you want to install JDK in the form of RPM packages. If you want to use the self-extracting binary file instead, see Installation of Self-Extracting Binary.

  1. Download and check the file size.
  2. You can download to any directory you choose.

    Before you download the file, notice its byte size provided on the download page on the web site. Once the download has completed, compare that file size to the size of the downloaded file to make sure they are equal.

  3. Extract the contents of the downloaded file.
  4. Change directory to where the downloaded file is located and run these commands to first set the executable permissions and then run the binary to extract the RPM file:

    chmod a+x jdk-1_5_0_<version>-linux-i586-rpm.bin

    ./jdk-1_5_0_<version>-linux-i586-rpm.bin

    Note that the initial “./” is required if you do not have “.” in your PATH environment variable.

    The script displays a binary license agreement, which you are asked to agree to before installation can proceed. Once you have agreed to the license, the install script creates the file jdk-1_5_0_<version>-linux-i586.rpm in the current directory.

  5. Become root by running the su command and entering the super-user password.
  6. Run the rpm command to install the packages that comprise the JDK:
  7. rpm -iv jdk-1_5_0_<version>-linux-i586.rpm

  8. Delete the bin and rpm file if you want to save disk space.
  9. Exit the root shell.
    To Set the J2SE Symlink


Note

You may elect to continue running some Java Enterprise System services on the previous version of J2SE. Consult the appropriate component product administration guides to do so. For example, you can change the J2SE pointer used by an Application Server instances from /usr/jdk/entsys-j2se (which would now be pointing to 1.5) to the previous version that is already on the system.


  1. Shutdown Java Enterprise System services that depend on J2SE.
  2. Reset the /usr/jdk/entsys-j2se symbolic link to point to the new J2SE installation.
  3. If you upgraded the version of J2SE installed under /usr/j2se, then reset the symbolic link as follows:

    # rm /usr/jdk/entsys-j2se
    # ln -s /usr/j2se /usr/java/entsys-j2se

    If you installed the new version of J2SE in the non-default location, then reset the symbolic link as follows:

    # rm /usr/jdk/entsys-j2se
    # ln -s /usr/java/jdk1.5.0_01 /usr/jdk/entsys-j2se

  4. Start Java Enterprise System services that depend on J2SE.


Upgrading Supplemental Files

If you are upgrading from Java Enterprise System 2003Q4, you will need to apply a supplemental upgrade to the shared component package for Apache Common Logging: SUNWaclg.

  1. Acquire the Supplementary files for upgrading Sun Java Enterprise System from 2003Q4 to 2004Q2 for Application Server and Message Queue. For a copy of this file go to:
  2. http://www.sun.com/software/javaenterprisesystem/get.html

  3. Select the Supplementary files for upgrading Sun Java Enterprise System from 2003Q4 to 2004Q2 for Application Server and Message Queue.
  4. Download the java_es_04Q2_shared-component-upgrade.zip file. Unzip the file.

  5. Note

    Do not follow the instructions in the accompanying README file. Instead perform the following procedure:


  6. Prior to installation of the package remove the old version of the SUNWaclg package. Remove the package by running the following command:
  7. pkgrm  SUNWaclg

  8. After you have removed the old package, change directory to the correct architecture you want to install:
  9. cd <Solaris_sparc or Solaris_x86>

  10. Add the new version of the SUNWaclg package:
  11. pkgadd -d SUNWaclg


Upgrading Sun Java System Directory Server LDAP directory schema

This section does not upgrade the actual Directory Server software. It updates the LDAP schema, index, and configuration data in preparation for Calendar Server 6, Messaging Server 6, Communication Express and Delegated Administrator that ship in Java Enterprise Server 2005Q1.


Note

You must perform the procedures in this section on the machine where the Directory Server is installed.


  1. Access the Directory Server Setup Perl script
  2. The Directory Server Setup Perl script (comm_dssetup.pl) is delivered in the patches shown in Table 2-5.

    Table 2-5  Patches for Directory Server Setup Perl script

    Patch ID

    Component

    Platform

    118242
    Revision no. -01 or higher

    Directory Server Setup Perl script (comm_dssetup.pl) patch

    Solaris 8 and 9 SPARC

    118245
    Revision no. -01 or higher

    Directory Server Setup Perl script (comm_dssetup.pl) add-on patch

    Solaris 8 and 9 SPARC


    Note

    On Solaris, the comm_dssetup.pl default location is /opt/SUNWcomds. On Linux, the default location is /opt/sun/comms/dssetup


  3. Check if you have an existing version of comm_dssetup.pl already installed:
    1. Run the following command:
    2. pkgparam -v SUNWcomds VERSION

    3. If the displayed version begins with:
    4. VERSION=6.3, REV=2004.08.05

      Run the following command:

      pkgrm SUNWcomds

      If the installed version is

      VERSION=’6.3,REV=2004.08.12’

      Then the version installed is ok to use.

      If the displayed version is not any of the above then you will need to install the patches for Directory Server Setup Perl script listed in Step 5.

  4. cd to your working directory.
  5. Read the README files, which contains instructions and last-minute information about the patches.
  6. Install the Directory Server Setup Perl script patches, 118242 and 118245, by using the patchadd command. You must install both patches.
  7. Run the Directory Server Setup Perl script.
  8. The comm_dssetup.pl script configures your LDAP Directory Server to work with your Calendar Server, Messaging Server, Communications Express, Outlook Connector, and Delegated Administrator configurations.

    If you already have run the comm_dssetup.pl script when you upgraded to Messaging Server 6 2005Q1, you do not need to run the script again.

    When you installed the comm_dssetup.pl patches in Step 5, the current version of the script was placed in the following directory:

    Solaris /opt/SUNWcomds/sbin/comm_dssetup.pl

    Linux /opt/sun/comms/dssetup

    You must run this version of the script to update the LDAP directory to support the Communications Services 6 2005Q1 components (Messaging Server, Calendar Server, Communications Express, Outlook Connector, and Delegated Administrator).

    For information on running the comm_dssetup.pl script, see “Chapter 2: Configuring Your LDAP Directory,” in the Sun Java System Calendar Server 6 2004Q2 Administration Guide (http://docs.sun.com/doc/817-5697).

Requirement for S/MIME: User/Group Suffix

If you intend to configure S/MIME for Communications Express Mail, be sure to record the user/group suffix (dn). The comm_dssetup.pl script requests you to enter the following information:

Please enter the Users/Groups base suffix [o=usergroup]:

The User and Group base suffix is the top entry in the LDAP Organization Tree which holds the namespace for user and group entries. Be sure that the User and Group base suffix you select is the same as what you specified during your Directory Server installation and in your Messaging Server installation.

You will need to provide this user/group suffix again when you configure S/MIME.



Previous      Contents      Index      Next     


Part No: 819-0062-11.   Copyright 2005 Sun Microsystems, Inc. All rights reserved.