glassfish
  1. glassfish
  2. GLASSFISH-16770

[asadmin] Unable to set "-server" JVM options

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1, 3.1.1_dev
    • Fix Version/s: 3.1.2_dev
    • Component/s: docs
    • Labels:
      None

      Description

      Just trying to change the JVM options with asadmin instead of writing XML:

      $ ./bin/asadmin create-jvm-options -server
      Deprecated syntax, instead use:
      asadmin --secure --echo create-jvm-options [options] ...

      ^^^
      and there it hangs. The command doesn't return at all, neither success, nor failure.

      The following doesn't work either:

      $ ./bin/asadmin create-jvm-options "-server"
      $ ./bin/asadmin create-jvm-options '-server'
      $ ./bin/asadmin create-jvm-options -server

      However, as a current workaround, the following works:
      $ ./bin/asadmin create-jvm-options "-server"
      ...or:
      $ ./bin/asadmin create-jvm-options '-server'

        Issue Links

          Activity

          Hide
          Rebecca Parks added a comment -

          Added the following to the 3.1.1 Release Notes:

          Unable to set -server JVM options (16770)

          Description

          GlassFish Server misinterprets the following command:

          asadmin> create-jvm-options -server

          The command is interpreted as if the following command had been entered, using the short options for --secure and --echo:

          asadmin> create-jvm-options -se

          Workaround

          To specify a JVM option that could be mistaken for one or more asadmin command short options, use a double dash before the JVM option. For example:

          asadmin> create-jvm-options – -server

          This double dash tells the asadmin command to stop parsing its own short options and start parsing subcommand options.

          Show
          Rebecca Parks added a comment - Added the following to the 3.1.1 Release Notes: Unable to set -server JVM options (16770) Description GlassFish Server misinterprets the following command: asadmin> create-jvm-options -server The command is interpreted as if the following command had been entered, using the short options for --secure and --echo: asadmin> create-jvm-options -se Workaround To specify a JVM option that could be mistaken for one or more asadmin command short options, use a double dash before the JVM option. For example: asadmin> create-jvm-options – -server This double dash tells the asadmin command to stop parsing its own short options and start parsing subcommand options.
          Hide
          Paul Davies added a comment -

          I would like to keep this issue open to allow for the possibility of adding this information to the man page in a future release.

          Show
          Paul Davies added a comment - I would like to keep this issue open to allow for the possibility of adding this information to the man page in a future release.
          Hide
          Mike Fitch added a comment -

          Updated create-jvm-option in build 14 via svn commit 51521

          Show
          Mike Fitch added a comment - Updated create-jvm-option in build 14 via svn commit 51521
          Hide
          Mike Fitch added a comment -

          Accidentally clicked "Close" instead of "Resolve"

          Show
          Mike Fitch added a comment - Accidentally clicked "Close" instead of "Resolve"
          Hide
          Mike Fitch added a comment -

          Clicking "Resolve" this time.

          Show
          Mike Fitch added a comment - Clicking "Resolve" this time.

            People

            • Assignee:
              Mike Fitch
              Reporter:
              ancoron
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: