glassfish
  1. glassfish
  2. GLASSFISH-17496

Installer doesn't reliably verify detected JDK installation

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.2_b06
    • Fix Version/s: None
    • Component/s: installation
    • Labels:
      None
    • Environment:

      OS:OEL6 32bit
      Bundle:glassfish-3.1.2-b06-unix-ml.sh
      java version:1.7.0
      locale:en

      Description

      I installed glassfish-3.1.2-b06-unix-ml.sh on OEL6 32bit (java version:1.7.0) but failed. Pls check the picture attached.

      Then I checked "glassfish3/glassfish/bin/asadmin" and "glassfish3/glassfish/config/asenv.conf", there is "AS_JAVA=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0". When GF tryed to create domain, it failed because of no such file in AS_JAVA/bin/java.
      I noticed that jdk was just installed on this OEL6, and JAVA_HOME didn't take effect immediately after profile was modified. After JAVA_HOME is set on env, the installation is ok.

      In fact, there would be warning and stop installation if JAVA_HOME is not set for GF v3.1.1.

        Activity

        Hide
        scatari added a comment -

        Assigning to Snjezana for further evaluation.

        Show
        scatari added a comment - Assigning to Snjezana for further evaluation.
        Hide
        Snjezana Sevo-Zenzerovic added a comment -

        Just to clarify: installer does not require that JAVA_HOME is set, it should be able to locate appropriate JDK installation using PATH value or default JDK installation locations. That being said, something went wrong with JDK location verification in this case and that aspect will get fixed.

        Show
        Snjezana Sevo-Zenzerovic added a comment - Just to clarify: installer does not require that JAVA_HOME is set, it should be able to locate appropriate JDK installation using PATH value or default JDK installation locations. That being said, something went wrong with JDK location verification in this case and that aspect will get fixed.
        Hide
        Snjezana Sevo-Zenzerovic added a comment -

        Changed summary to better describe the actual issue.

        Show
        Snjezana Sevo-Zenzerovic added a comment - Changed summary to better describe the actual issue.
        Hide
        Opher Shachar added a comment -

        Hello,
        I'm commenting here as http://java.net/jira/browse/GLASSFISH-17861 was marked as duplicate.
        I'm experiencing the same issue as #17861 on Windows 7 SP1 64-bit.
        I've traced the cause to that the installer adds this line:

        set AS_JAVA=C:\Program Files (x86)\Java

        to C:\glassfish3\glassfish\config\asenv.bat .

        Obviously this path is wrong. On my system the correct path would be:

        set AS_JAVA=C:\Program Files\Java\jdk1.7.0

        Worse still, the installer (on Windows at least) reports the installation to be successful.

        Show
        Opher Shachar added a comment - Hello, I'm commenting here as http://java.net/jira/browse/GLASSFISH-17861 was marked as duplicate. I'm experiencing the same issue as #17861 on Windows 7 SP1 64-bit. I've traced the cause to that the installer adds this line: set AS_JAVA=C:\Program Files (x86)\Java to C:\glassfish3\glassfish\config\asenv.bat . Obviously this path is wrong. On my system the correct path would be: set AS_JAVA=C:\Program Files\Java\jdk1.7.0 Worse still, the installer (on Windows at least) reports the installation to be successful.

          People

          • Assignee:
            Snjezana Sevo-Zenzerovic
            Reporter:
            li.wu
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Due:
              Created:
              Updated: