Description
run.sh executes
"$JAVA" -version
at various places. The version in trunk does so at line 184 in order to check whether this is a 64 bit JVM. Unfortunately it actually executes
"$JAVA" $JAVA_OPTS -version
This works if the caller of run.sh has not set JAVA_OPTS in which case it will only contain settings added by the run.sh script itself. However, it is no use when JAVA_OPTS contains settings like -javaagent:<agentlib> etc since this can stop the java -version call from exiting.
I do't think there is any need to pass JAVA_OPTS here (none of the other cases where java -version is executed need to do so). If it really is necessary to pass some of the values added by run.sh to java at thsi point then this should be done by accumulating the addde values up to this point without including the values supplied by the caller of run.sh.
Assigning this to Mladen as his fingerprints are on the offending line
Attachments
Issue Links
- is incorporated by
-
JBPAPP-4730 Use of -javaagent with JBoss Native Can Hang run.sh on 64bit Check
- Closed