Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-8063

run.sh script should not employ JAVA_OPTS when testing java vesion for 64 bit support

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 6.0.0.M4
    • 6.0.0.M4
    • Other
    • None

    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

          Activity

            People

              rhn-engineering-mturk Mladen Turk
              rhn-engineering-adinn Andrew Dinn
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: