users@glassfish.java.net

Re: Install Fails for Glassfish (java_ee_sdk-6-unix.sh)

From: Sathyan Catari <sathyan.catari_at_oracle.com>
Date: Thu, 08 Jul 2010 14:00:47 -0700

Did you update the script to add "set"? Its going to break if you update
the script.
I would recommend you to download the bundle again.
Could u please double check the download size?

-Sathyan


glassfish_at_javadesktop.org wrote:
> I've tried both you suggestion. Same error.
>
> Set -x in the script for more information. See the following:
>
> [root_at_edeut002 ~]# java -version
> java version "1.6.0_21"
> Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
> Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)
> [root_at_edeut002 sdk]# ls
> java_ee_sdk-6u1-unix.sh
> [root_at_edeut002 sdk]# export DISPLAY=10.11.0.57:0.0
> [root_at_edeut002 sdk]# ls
> java_ee_sdk-6u1-unix.sh
> [root_at_edeut002 sdk]# ./java_ee_sdk-6u1-unix.sh
> + ARGS=
> + export ARGS
> + _POSIX2_VERSION=199209
> + export _POSIX2_VERSION
> ++ locate_jar
> ++ jar_locs=/bin:/bin:/usr/bin:/usr/java/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/opt/jdk1.6.0_21/bin
> +++ echo /bin:/bin:/usr/bin:/usr/java/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/opt/jdk1.6.0_21/bin
> +++ tr : ' '
> ++ jar_locs='/bin /bin /usr/bin /usr/java/bin /usr/kerberos/sbin /usr/kerberos/bin /usr/local/sbin /usr/local/bin /sbin /bin /usr/sbin /usr/bin /root/bin /opt/jdk1.6.0_21/bin'
> ++ for j in '$jar_locs'
> ++ '[' -x /bin/jar ']'
> ++ for j in '$jar_locs'
> ++ '[' -x /bin/jar ']'
> ++ for j in '$jar_locs'
> ++ '[' -x /usr/bin/jar ']'
> ++ for j in '$jar_locs'
> ++ '[' -x /usr/java/bin/jar ']'
> ++ for j in '$jar_locs'
> ++ '[' -x /usr/kerberos/sbin/jar ']'
> ++ for j in '$jar_locs'
> ++ '[' -x /usr/kerberos/bin/jar ']'
> ++ for j in '$jar_locs'
> ++ '[' -x /usr/local/sbin/jar ']'
> ++ for j in '$jar_locs'
> ++ '[' -x /usr/local/bin/jar ']'
> ++ for j in '$jar_locs'
> ++ '[' -x /sbin/jar ']'
> ++ for j in '$jar_locs'
> ++ '[' -x /bin/jar ']'
> ++ for j in '$jar_locs'
> ++ '[' -x /usr/sbin/jar ']'
> ++ for j in '$jar_locs'
> ++ '[' -x /usr/bin/jar ']'
> ++ for j in '$jar_locs'
> ++ '[' -x /root/bin/jar ']'
> ++ for j in '$jar_locs'
> ++ '[' -x /opt/jdk1.6.0_21/bin/jar ']'
> ++ echo /opt/jdk1.6.0_21/bin/jar
> ++ return
> + my_jar=/opt/jdk1.6.0_21/bin/jar
> + '[' -z /opt/jdk1.6.0_21/bin/jar ']'
> + CHECK_FOR_DISPLAY=1
> + '[' 0 -gt 0 ']'
> + '[' 1 -eq 1 ']'
> + '[' -z 10.11.0.57:0.0 ']'
> ++ date +%m%d%y%H%M%S
> + tmpdir_name=070810143312
> + tmpdir_path=/tmp/install.070810143312
> + mkdir /tmp/install.070810143312
> + '[' 0 -ne 0 ']'
> + echo 'Extracting archive, please wait...'
> Extracting archive, please wait...
> + tail +207l ./java_ee_sdk-6u1-unix.sh
> + cd /tmp/install.070810143312
> + /opt/jdk1.6.0_21/bin/jar xvf tmp.jar
> ++ locate_java
> ++ java_locs=/bin:/bin:/usr/bin:/usr/java/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/opt/jdk1.6.0_21/bin
> +++ echo /bin:/bin:/usr/bin:/usr/java/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/opt/jdk1.6.0_21/bin
> +++ tr : ' '
> ++ java_locs='/bin /bin /usr/bin /usr/java/bin /usr/kerberos/sbin /usr/kerberos/bin /usr/local/sbin /usr/local/bin /sbin /bin /usr/sbin /usr/bin /root/bin /opt/jdk1.6.0_21/bin'
> ++ for j in '$java_locs'
> ++ major=0
> ++ minor=0
> ++ '[' -x /bin/java ']'
> ++ '[' 0 -eq 1 -a 0 -ge 6 ']'
> ++ '[' 0 -gt 1 ']'
> ++ for j in '$java_locs'
> ++ major=0
> ++ minor=0
> ++ '[' -x /bin/java ']'
> ++ '[' 0 -eq 1 -a 0 -ge 6 ']'
> ++ '[' 0 -gt 1 ']'
> ++ for j in '$java_locs'
> ++ major=0
> ++ minor=0
> ++ '[' -x /usr/bin/java ']'
> ++ '[' 0 -eq 1 -a 0 -ge 6 ']'
> ++ '[' 0 -gt 1 ']'
> ++ for j in '$java_locs'
> ++ major=0
> ++ minor=0
> ++ '[' -x /usr/java/bin/java ']'
> ++ '[' 0 -eq 1 -a 0 -ge 6 ']'
> ++ '[' 0 -gt 1 ']'
> ++ for j in '$java_locs'
> ++ major=0
> ++ minor=0
> ++ '[' -x /usr/kerberos/sbin/java ']'
> ++ '[' 0 -eq 1 -a 0 -ge 6 ']'
> ++ '[' 0 -gt 1 ']'
> ++ for j in '$java_locs'
> ++ major=0
> ++ minor=0
> ++ '[' -x /usr/kerberos/bin/java ']'
> ++ '[' 0 -eq 1 -a 0 -ge 6 ']'
> ++ '[' 0 -gt 1 ']'
> ++ for j in '$java_locs'
> ++ major=0
> ++ minor=0
> ++ '[' -x /usr/local/sbin/java ']'
> ++ '[' 0 -eq 1 -a 0 -ge 6 ']'
> ++ '[' 0 -gt 1 ']'
> ++ for j in '$java_locs'
> ++ major=0
> ++ minor=0
> ++ '[' -x /usr/local/bin/java ']'
> ++ '[' 0 -eq 1 -a 0 -ge 6 ']'
> ++ '[' 0 -gt 1 ']'
> ++ for j in '$java_locs'
> ++ major=0
> ++ minor=0
> ++ '[' -x /sbin/java ']'
> ++ '[' 0 -eq 1 -a 0 -ge 6 ']'
> ++ '[' 0 -gt 1 ']'
> ++ for j in '$java_locs'
> ++ major=0
> ++ minor=0
> ++ '[' -x /bin/java ']'
> ++ '[' 0 -eq 1 -a 0 -ge 6 ']'
> ++ '[' 0 -gt 1 ']'
> ++ for j in '$java_locs'
> ++ major=0
> ++ minor=0
> ++ '[' -x /usr/sbin/java ']'
> ++ '[' 0 -eq 1 -a 0 -ge 6 ']'
> ++ '[' 0 -gt 1 ']'
> ++ for j in '$java_locs'
> ++ major=0
> ++ minor=0
> ++ '[' -x /usr/bin/java ']'
> ++ '[' 0 -eq 1 -a 0 -ge 6 ']'
> ++ '[' 0 -gt 1 ']'
> ++ for j in '$java_locs'
> ++ major=0
> ++ minor=0
> ++ '[' -x /root/bin/java ']'
> ++ '[' 0 -eq 1 -a 0 -ge 6 ']'
> ++ '[' 0 -gt 1 ']'
> ++ for j in '$java_locs'
> ++ major=0
> ++ minor=0
> ++ '[' -x /opt/jdk1.6.0_21/bin/java ']'
> +++ /opt/jdk1.6.0_21/bin/java -version
> +++ grep version
> +++ cut '-d"' -f2
> ++ version=1.6.0_21
> +++ echo 1.6.0_21
> +++ cut -d. -f1
> ++ major=1
> +++ echo 1.6.0_21
> +++ cut -d. -f2
> ++ minor=6
> ++ '[' 1 -eq 1 -a 6 -ge 6 ']'
> ++ echo /opt/jdk1.6.0_21/bin/java
> ++ return
> + my_java=/opt/jdk1.6.0_21/bin/java
> + '[' -z /opt/jdk1.6.0_21/bin/java ']'
> ++ dirname /opt/jdk1.6.0_21/bin/java
> + my_java_bin=/opt/jdk1.6.0_21/bin
> ++ dirname /opt/jdk1.6.0_21/bin
> + JAVA_HOME=/opt/jdk1.6.0_21
> + export JAVA_HOME
> + /opt/jdk1.6.0_21/bin/jar xvf ./Product/Packages/Engine.zip
> java.io.FileNotFoundException: ./Product/Packages/Engine.zip (No such file or directory)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.<init>(FileInputStream.java:106)
> at java.io.FileInputStream.<init>(FileInputStream.java:66)
> at sun.tools.jar.Main.run(Main.java:238)
> at sun.tools.jar.Main.main(Main.java:1149)
> + /opt/jdk1.6.0_21/bin/jar xvf ./Product/Packages/Resources.zip
> java.io.FileNotFoundException: ./Product/Packages/Resources.zip (No such file or directory)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.<init>(FileInputStream.java:106)
> at java.io.FileInputStream.<init>(FileInputStream.java:66)
> at sun.tools.jar.Main.run(Main.java:238)
> at sun.tools.jar.Main.main(Main.java:1149)
> + /opt/jdk1.6.0_21/bin/jar xvf ./Product/Packages/metadata.zip
> java.io.FileNotFoundException: ./Product/Packages/metadata.zip (No such file or directory)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.<init>(FileInputStream.java:106)
> at java.io.FileInputStream.<init>(FileInputStream.java:66)
> at sun.tools.jar.Main.run(Main.java:238)
> at sun.tools.jar.Main.main(Main.java:1149)
> + rm tmp.jar
> + chmod ugo+x product-installer.sh
> chmod: cannot access `product-installer.sh': No such file or directory
> + chmod ugo+x install/bin/engine-wrapper
> chmod: cannot access `install/bin/engine-wrapper': No such file or directory
> + echo InstallHome.directory.INSTALL_HOME=/root/glassfishv3
> + sh product-installer.sh
> sh: product-installer.sh: No such file or directory
> + rm -rf /tmp/install.070810143312/install.properties
> + exit 0
> [root_at_edeut002 sdk]#
> [Message sent by forum member 'bob_cunningham']
>
> http://forums.java.net/jive/thread.jspa?messageID=477137
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>