Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4473882
Votes 0
Synopsis Java postinstall scripts problem with Live Upgrade from 2.6/2.7/2.8 to S9/s8u6
Category java:install
Reported Against 1.2.2
Release Fixed 1.1.8_15, 1.2.2_08(Bug ID:2117729) , 1.2.2_10(Bug ID:2117730) , 1.3.1(Bug ID:2117731) , 1.3.1_02(Bug ID:2117732) , 1.4.0_01(Bug ID:2117733) , 1.4.1(hopper) (Bug ID:2117734)
State 10-Fix Delivered, Needs Verification, bug
Priority: 2-High
Related Bugs 4473817
Submit Date 24-JUN-2001
Description
  xxxxx@xxxxx   2001-06-24

	This is found during s28u6_03 Live Upgrade testing on sparc and  customer  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.



  xxxxx@xxxxx   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.


  xxxxx@xxxxx   2001-06-26
---------------------------------------------------------------


  xxxxx@xxxxx   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
# 

  xxxxx@xxxxx   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.
Work Around
  xxxxx@xxxxx   2001-06-27

	After you live upgade the system from S2.6/S7 to S8u6, you will need to switch the java link from java 1.1 to java 1.2 as follow:

line3-u80#: rm /usr/java
line3-u80#:  ln -s ./java1.2 java 

	After you live upgrade the system from S8 to S9, you will need to switch the java link from java 1.2 to java 1.4 as follow:

line3-u80#: rm /usr/java
line3-u80#:  ln -s ./j2se java
Evaluation
The fix involves fixing the Java postinstall script as well as the Solaris install libspmisvc.so.1 so that the INST_RELEASE file will be updated prior to the installation of Java packages. The fix in libspmisvc.so.1 is being handled by   xxxxx@xxxxx   in Solaris group.
See suggested fix for Java postinstall script.
  xxxxx@xxxxx   2001-08-07
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang