Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5869

standalone.bat script does not parse JAVA_OPTS containing '|' symbol properly

XMLWordPrintable

    • Hide

      1. Edit the "C:\jboss-eap-6.1.1\bin\standalone.conf.bat" by adding the following line of entry in it:

      set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.nonProxyHosts=localhost|127.0.0.1|10.10.10.*"

      OR

      set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.nonProxyHosts=localhost^|127.0.0.1^|10.10.10.*"

      2 Restart WildFly and notice the error messages in the Windows Console.

      Show
      1. Edit the "C:\jboss-eap-6.1.1\bin\standalone.conf.bat" by adding the following line of entry in it: set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.nonProxyHosts=localhost|127.0.0.1|10.10.10.*" OR set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.nonProxyHosts=localhost^|127.0.0.1^|10.10.10.*" 2 Restart WildFly and notice the error messages in the Windows Console.

      ======================
      Scenario-1)
      ============ With the following line of JAVA_OPTS in "standalone.bat.conf" file

      set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.nonProxyHosts=localhost|127.0.0.1|10.10.10.*"

      Error while starting EAP 6.1.1
      C:\jboss-eap-6.1.1\bin>standalone.bat
      Calling "C:\jboss-eap-6.1.1\bin\standalone.conf.bat"
      Setting JAVA property to "C:\JDKs\jdk1.7.0_67\bin\java"
      '127.0.0.1' is not recognized as an internal or external command,
      operable program or batch file.
      

      Scenario-2)
      ============ In Windows "^" sign is the escape character so we tried altering the JAVA_OPTS as following in the "standalone.bat.conf" file:

      set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.nonProxyHosts=localhost^|127.0.0.1^|10.10.10.*"

      Now EAP 6.1.1 server starts but still we see the following messages in windows console:

      C:\jboss-eap-6.1.1\bin>standalone.bat
      Calling "C:\jboss-eap-6.1.1\bin\standalone.conf.bat"
      Setting JAVA property to "C:\JDKs\jdk1.7.0_67\bin\java"
      '127.0.0.1' is not recognized as an internal or external command,
      operable program or batch file.
      '127.0.0.1' is not recognized as an internal or external command,
      operable program or batch file.
      '127.0.0.1' is not recognized as an internal or external command,
      operable program or batch file.
      '127.0.0.1' is not recognized as an internal or external command,
      operable program or batch file.
      '127.0.0.1' is not recognized as an internal or external command,
      operable program or batch file.
      '127.0.0.1' is not recognized as an internal or external command,
      operable program or batch file.
      '127.0.0.1' is not recognized as an internal or external command,
      operable program or batch file.
      

            lvydra Lukas Vydra
            jperkins-rhn James Perkins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified