Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4473882

Java postinstall scripts problem with Live Upgrade from 2.6/2.7/2.8 to S9/s8u6

XMLWordPrintable

    • 15
    • generic
    • solaris_8
    • Not verified


        mary.ding@Eng 2001-06-24

        This is found during s28u6_03 Live Upgrade testing on sparc and intel as follow:

        I install the machine with:

        OS: Solaris 2.6 5/98 plus the latest recommended patch cluster and bzcat patch
        Cluster: SUNWCXall
        Locale to install: All European locales
        Locale to display: C


        Then I install the Live Upgrade package from s28u6_03 2 of 2 CD. I ran Live Upgrade and created the ABE and do the following:
        1. Upgrade the ABE to s28u6_03 1 of 2 image. This went fine. However, if you check the /usr/java link at this point, it points to java 1.1 instead of java 1.2 even though SUNWjvrt and SUNWj2rt had been pkgadded:

        # cd /a/usr/
        # ls -lia java
            307398 lrwxrwxrwx 1 root other 7 Jun 24 18:53 java -> java1.1
        # cd /a/var/sadm/system/logs
        # grep SUNWjvrt up*log
        Removing package SUNWjvrt:
        Removal of <SUNWjvrt> was successful.
        Doing pkgadd of SUNWjvrt to /.
        Installation of <SUNWjvrt> was successful.
        # grep SUNWj2rt up*log
        Doing pkgadd of SUNWj2rt to /.
        Installation of <SUNWj2rt> was successful.
        #

        Because of the java link, we have problems running prodreg after we reboot the ABE after installing 2 of 2 and Language CD.

        I had to manually switch the link to java1.2 after the upgrade. The SUNWj2rt and SUNWj3rt postinstall script should be looked at.



        mary.ding@Eng 2001-06-25

        We had done the following in Live Upgrade and check the /usr/java link after live upgrade:

        From OS release to OS release java links
        ==========================================================
        2.6 5/98 s28u6_03 java 1.1 - wrong
        2.7 11/99 s28u6_03 java 1.1 - wrong
        2.6 5/98 s9_40 j2se - OK
        2.7 11/99 s9_40 j2se - OK
        S8 s9_40 java 1.2 - wrong

        This had to be fixed by S8u6 FCS and S9 Beta Refresh since this impacts live upgrade. This had to be documentated in the release note.

        -----------------------------------------------------------

        I just ran a Live upgrade on an Ultra 60, going from S8U4 to S9_40, and
        when I checked the java link, it was showing 1.2, instead of j2se for s9.

        See:
        # cat /etc/release
                                      Solaris 9 s9_40 SPARC
                   Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
                                     Assembled 12 June 2001

        line2-u60# rehash
        line2-u60# cd /usr/java/bin
        line2-u60# pwd
        /usr/java1.2/bin
        line2-u60# java -fullversion
        java full version "Solaris_JDK_1.2.2_08"


        I updated Mary Ding's table above to reflect the java link problem seen
        in S8->S9.


        ana.buchenhorner@Eng 2001-06-26
        ---------------------------------------------------------------


        mary.ding@Eng 2001-06-27

        In addition, since the java link was wrong, the following java binary will point to the wrong thing after liveupgrade:

        /usr/bin/keytool=../java/bin/keytool s none SUNWj2rt
        /usr/bin/policytool=../java/bin/policytool s none SUNWj2rt
        /usr/bin/rmid=../java/bin/rmid s none SUNWj2rt
        /usr/bin/tnameserv=../java/bin/tnameserv s none SUNWj2rt

        # cd /usr/bin
        # ls -lia keytool
            137889 lrwxrwxrwx 1 root other 19 Jun 27 14:06 keytool -> ../java/bin/keytool
        # cd ../java/bin
        # ls -lia keytool
        keytool: No such file or directory
        # pwd
        /usr/java1.1/bin
        #

        mary.ding@Eng 2001-08-03

        Besides the various SUNWj2* and SUNWj3 packages, SUNWjv* packages are also impacted too in S8 u6 live upgrade.

        Their postinstall scripts also need to be updated.

              ccheung Calvin Cheung
              mmding Mary Ding (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: