Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-12442

[GSS](7.0.z) standalone.bat script does not parse JAVA_OPTS containing '|' symbol properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • 7.0.7.GA
    • Scripts
    • 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.
      

            rstancel@redhat.com Radovan Stancel
            rstancel@redhat.com Radovan Stancel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 2 hours Remaining Estimate - 6 hours
                6h
                Logged:
                Time Spent - 2 hours Remaining Estimate - 6 hours
                2h