7 Replies Latest reply: Jul 8, 2010 11:20 PM by 782681 RSS

    Install fails for java_ee_sdk-6-unix.sh

    843833
      OS: RHEL 5.4 64-bit
      JDK: jdk1.6.0_20
      JAVA_HOME set in the path


      Install fails for both java_ee_sdk-6-unix.sh and java_ee_sdk-6u1-unix.sh with the same error:

      The error output is as follows:

      login as: root
      root@10.62.32.241's password:
      Last login: Wed Jul 7 16:02:53 2010 from 10.11.0.81
      [root@edeut002 ~]# cd /var/tmp
      [root@edeut002 tmp]# cd sdk
      [root@edeut002 sdk]# ls
      java_ee_sdk-6u1-unix.sh
      [root@edeut002 sdk]# export DISPLAY=10.11.0.57:0.0
      [root@edeut002 sdk]# ./java_ee_sdk-6u1-unix.sh
      Extracting archive, please wait...
      created: META-INF/
      inflated: META-INF/MANIFEST.MF
      created: Product/
      created: Product/Packages/
      created: install/
      created: install/metadata/
      created: install/metadata/dependency/
      created: install/metadata/model/
      created: install/metadata/templates/
      created: install/metadata/view/
      java.util.zip.ZipException: invalid entry size (expected 3718673 but got 66965 bytes)
      at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:386)
      at java.util.zip.ZipInputStream.read(ZipInputStream.java:156)
      at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:100)
      at sun.tools.jar.Main.extractFile(Main.java:936)
      at sun.tools.jar.Main.extract(Main.java:852)
      at sun.tools.jar.Main.run(Main.java:242)
      at sun.tools.jar.Main.main(Main.java:1149)
      created: install/
      created: install/bin/
      created: install/lib/
      created: install/lib/external/
      created: install/lib/external/apache/
      created: install/lib/external/beanshell/
      created: install/lib/external/charva/
      created: install/lib/external/chaxml/
      created: install/lib/external/freemarker/
      created: install/lib/external/jaxb/
      created: install/lib/external/jdom/
      created: install/lib/external/swixml/
      created: install/lib/platforms/
      created: install/lib/providers/
      created: install/lib/resources/
      created: install/lib/resources/org/
      created: install/lib/resources/org/openinstaller/
      created: install/lib/resources/org/openinstaller/resources/
      created: install/lib/sims/
      inflated: install/LICENSE.txt
      inflated: install/LICENSE_3rd_PARTY.txt
      inflated: install/bin/Engine-Wrapper.vbs
      inflated: install/bin/engine-wrapper
      inflated: install/bin/uninstaller
      inflated: install/bin/uninstaller.vbs
      inflated: install/install-config.properties
      java.io.EOFException: Unexpected end of ZLIB input stream
      at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:223)
      at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141)
      at java.util.zip.ZipInputStream.read(ZipInputStream.java:154)
      at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:100)
      at sun.tools.jar.Main.extractFile(Main.java:936)
      at sun.tools.jar.Main.extract(Main.java:852)
      at sun.tools.jar.Main.run(Main.java:242)
      at sun.tools.jar.Main.main(Main.java:1149)
      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)
      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)
      chmod: cannot access `product-installer.sh': No such file or directory
      sh: product-installer.sh: No such file or directory
      [root@edeut002 sdk]#


      Any ideas?

      --Bob C.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        • 1. Re: Install fails for java_ee_sdk-6-unix.sh
          843833
          Bob_Cunningham wrote:
          OS: RHEL 5.4 64-bit
          JDK: jdk1.6.0_20
          JAVA_HOME set in the path


          Install fails for both java_ee_sdk-6-unix.sh and java_ee_sdk-6u1-unix.sh with the same error:

          The error output is as follows:

          login as: root
          root@10.62.32.241's password:
          Last login: Wed Jul 7 16:02:53 2010 from 10.11.0.81
          [root@edeut002 ~]# cd /var/tmp
          [root@edeut002 tmp]# cd sdk
          [root@edeut002 sdk]# ls
          java_ee_sdk-6u1-unix.sh
          [root@edeut002 sdk]# export DISPLAY=10.11.0.57:0.0
          [root@edeut002 sdk]# ./java_ee_sdk-6u1-unix.sh
          >
          >
          Any ideas?
          It's a shell script. (./java_ee_sdk-6u1-unix.sh).
          At least the beginning of the file will be human readable.
          You can open it and investigate what it is doing.

          Maybe you can try
          # set -x
          # ./java_ee_sdk-6u1-unix.sh
          • 2. Re: Install fails for java_ee_sdk-6-unix.sh
            782681
            ...
            [root@edeut002 sdk]# ./java_ee_sdk-6u1-unix.sh
            Extracting archive, please wait...
            ...
            java.util.zip.ZipException: invalid entry size (expected 3718673 but got 66965 bytes)
            ...
            above sounds like broken zip (jar). In cases like this, first thing I typically try is to retry downloading stuff.

            If the problem persists after retry, I'd check the script to find out which particular archive it tries to extract then test it individually with commands like unzip -t <filename> or gunzip -t <filename>
            • 3. Re: Install fails for java_ee_sdk-6-unix.sh
              843833
              Download again java_ee_sdk-6u1-unix.sh. Also, download the new JDK the was on the site and deploy.

              Same errors. Still fails.

              In the installer script, inserted set -x

              Creates more debug information. Here it is...

              ********************
              [root@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@edeut002 sdk]# ls
              java_ee_sdk-6u1-unix.sh
              [root@edeut002 sdk]# export DISPLAY=10.11.0.57:0.0
              [root@edeut002 sdk]# ls
              java_ee_sdk-6u1-unix.sh
              [root@edeut002 sdk]# ./java_ee_sdk-6u1-unix.sh
              + ARGS=
              + export ARGS
              + POSIX2VERSION=199209
              + export POSIX2VERSION
              ++ 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@edeut002 sdk]#

              ***********************
              • 4. Re: Install fails for java_ee_sdk-6-unix.sh
                843833
                Good suggestion.

                Opened the script and inserted the set -x

                The debug information follows:

                *****************************

                [root@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@edeut002 sdk]# ls
                java_ee_sdk-6u1-unix.sh
                [root@edeut002 sdk]# export DISPLAY=10.11.0.57:0.0
                [root@edeut002 sdk]# ls
                java_ee_sdk-6u1-unix.sh
                [root@edeut002 sdk]# ./java_ee_sdk-6u1-unix.sh
                + ARGS=
                + export ARGS
                + POSIX2VERSION=199209
                + export POSIX2VERSION
                ++ 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@edeut002 sdk]#


                ***************************************
                • 5. Re: Install fails for java_ee_sdk-6-unix.sh
                  782681
                  cross-posted: [http://forums.java.net/jive/thread.jspa?messageID=477119]

                  // ["Be Forthright When Cross Posting To Other Sites"|http://faq.javaranch.com/java/BeForthrightWhenCrossPostingToOtherSites]
                  • 6. Re: Install fails for java_ee_sdk-6-unix.sh
                    843833
                    Bob_Cunningham wrote:
                    Good suggestion.

                    Opened the script and inserted the set -x

                    The debug information follows:
                    Next time use code tags.

                    And it was really to help you troubleshoot the issue
                    rather than for you to dump the debug information on us.
                    • 7. Re: Install fails for java_ee_sdk-6-unix.sh
                      843833
                      I found the issue.

                      When I downloaded java_ee_sdk-6u1-unix.sh to my laptop (Windows XP), I checked the byte count. Byte count is correct at 72700196.

                      Then I would upload java_ee_sdk-6u1-unix.sh to my RHEL 5.4 server using WinSCP. Seems I was losing some bits and bytes on upload. Byte count varied each upload attempt by a few bytes. Not good.

                      So I turned to Secure SSH Shell. Used this product to upload to the RHEL 5.4 server. Checked the byte count. Matched. Launched java_ee_sdk-6-unix.sh and completed a successful install, configuration, and deployment.