[GLASSFISH-17491] (JDK) could not execute list-domains with asadmin after installed GF completely Created: 26/Oct/11  Updated: 20/Dec/16

Status: Open
Project: glassfish
Component/s: installation
Affects Version/s: 3.1.1_dev
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: sunny-gui Assignee: Snjezana Sevo-Zenzerovic
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
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


Attachments: JPEG File enbundle_error.jpg     JPEG File en_RHEL5x86_error.jpg     JPEG File ko_oel5x86_error.jpg    
Tags: 3_1_2-exclude

 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.



 Comments   
Comment by scatari [ 26/Oct/11 ]

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.

Comment by sunny-gui [ 27/Oct/11 ]

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.

Comment by Snjezana Sevo-Zenzerovic [ 27/Oct/11 ]

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

Comment by Snjezana Sevo-Zenzerovic [ 27/Oct/11 ]

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.

Comment by sunny-gui [ 28/Oct/11 ]

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.

Comment by Snjezana Sevo-Zenzerovic [ 28/Nov/11 ]

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

Generated at Sun Jan 22 03:56:26 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.