glassfish
  1. glassfish
  2. GLASSFISH-17491

(JDK) could not execute list-domains with asadmin after installed GF completely

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 3.1.1_b12
    • Fix Version/s: None
    • Component/s: installation
    • Labels:
      None
    • Environment:

      Server OS: RHEL 5 x86 and OEL 5 x86
      Bundle: java_ee_sdk-6u3-web-b12c-jdk7-linux-ml.sh
      Server Locales: en, ko, zh_CN

      Description

      could not execute list-domains with asadmin after installed GF completely

      To reproduce:
      1. Install GF with bundle named "java_ee_sdk-6u3-web-b12c-jdk7-linux-ml.sh", which download at http://javaweb.us.oracle.com/java/re/javaeesdk/6u3/promoted/b12c/archive/bundles/

      2. In termianl, go to GF_Install_HOME/bin, run ./asadmin list-domains

      There are error message, said

      Error: dl failure on lien 875
      Error: failed /root/glassfish3/jdk7/jre/lib/i386/client/libjvm.so, because /root/glassfish3/jdk7/lib/i386/client/libjvm.so:cannot restore segement prot after reloc: Permission denied

      This issue can reproducible in following env.
      1. RHEL 5 x86, en_US.UTF-8, ko_KR.UTF-8 and zh_CN.UTF-8 locales
      2. OEL 5 x86, en_US.UTF-8

      Attached screen shots for your reference.

      1. en_RHEL5x86_error.jpg
        121 kB
      2. enbundle_error.jpg
        147 kB
      3. ko_oel5x86_error.jpg
        152 kB

        Activity

        Hide
        scatari added a comment -

        Could you please check if you can run commands like "java -version" or "javac" against the installed JDK. Looks like this could be a broken JDK installation.

        Show
        scatari added a comment - Could you please check if you can run commands like "java -version" or "javac" against the installed JDK. Looks like this could be a broken JDK installation.
        Hide
        sunny-gui added a comment -

        Checked with non-ml bundle, java_ee_sdk-6u3-web-b12c-jdk7-linux.sh, this issue is reproducible in OEL 5 x86.

        Try to run command "java -version" under /root/glassfish3/jdk7/bin/, and happens same error, attached screen shot for this.

        Show
        sunny-gui added a comment - Checked with non-ml bundle, java_ee_sdk-6u3-web-b12c-jdk7-linux.sh, this issue is reproducible in OEL 5 x86. Try to run command "java -version" under /root/glassfish3/jdk7/bin/, and happens same error, attached screen shot for this.
        Hide
        Snjezana Sevo-Zenzerovic added a comment -

        This type of error is usually due to JDK not working properly under SELinux. I presume SELinux is enabled on affected systems and to verify that this is the root cause you can temporarily disable SELinux by running 'setenforce 0' command prior to running installer or subsequent asadmin commands.

        FWIW, I found this JDK issue with similar error, but in that case 32 bit JDK was being run on 64 bit Linux system and I presume this is not the case here:

        http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7024748

        Show
        Snjezana Sevo-Zenzerovic added a comment - This type of error is usually due to JDK not working properly under SELinux. I presume SELinux is enabled on affected systems and to verify that this is the root cause you can temporarily disable SELinux by running 'setenforce 0' command prior to running installer or subsequent asadmin commands. FWIW, I found this JDK issue with similar error, but in that case 32 bit JDK was being run on 64 bit Linux system and I presume this is not the case here: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7024748
        Hide
        Snjezana Sevo-Zenzerovic added a comment -

        Same issue reported on CentOS with original JDK distribution:

        http://comments.gmane.org/gmane.linux.centos.general/116308

        So, this problem doesn't seem to be limited to bundled JDK and I think we'll need to verify the workaround and document it.

        Show
        Snjezana Sevo-Zenzerovic added a comment - Same issue reported on CentOS with original JDK distribution: http://comments.gmane.org/gmane.linux.centos.general/116308 So, this problem doesn't seem to be limited to bundled JDK and I think we'll need to verify the workaround and document it.
        Hide
        sunny-gui added a comment -

        In the already installed GF env, I executed following commands.
        1. setenforce 0
        2. ./asadmin list-domains
        3. ./asadmin start-domain

        Sanity check in commands and AdminConsole, it works fine.

        Show
        sunny-gui added a comment - In the already installed GF env, I executed following commands. 1. setenforce 0 2. ./asadmin list-domains 3. ./asadmin start-domain Sanity check in commands and AdminConsole, it works fine.
        Hide
        Snjezana Sevo-Zenzerovic added a comment -

        Excluding from 3.1.2 release since this is really JDK issue. We may need to release note it, just in case.

        Show
        Snjezana Sevo-Zenzerovic added a comment - Excluding from 3.1.2 release since this is really JDK issue. We may need to release note it, just in case.

          People

          • Assignee:
            Snjezana Sevo-Zenzerovic
            Reporter:
            sunny-gui
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: