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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.Alpha9
    • 1.0.0.Alpha6
    • Scripts
    • None
    • Hide
      • Edit the "wildfly-9.0.0.Alpha1-SNAPSHOT\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.*"
      
      • Restart WildFly and notice the error messages in the Windows Console.
      Show
      Edit the "wildfly-9.0.0.Alpha1-SNAPSHOT\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.*" 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 WildFly

      C:\wildfly-9.0.0.Alpha1-SNAPSHOT\bin>standalone.bat
      Calling "C:\wildfly-9.0.0.Alpha1-SNAPSHOT\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 WildFly server starts but still we see the following messages in windows console:

      C:\wildfly-9.0.0.Alpha1-SNAPSHOT\bin>standalone.bat
      Calling "C:\wildfly-9.0.0.Alpha1-SNAPSHOT\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.
      '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.
      '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.
      '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.
      ===============================================================================
      
        JBoss Bootstrap Environment
      
        JBOSS_HOME: "C:\wildfly-9.0.0.Alpha1-SNAPSHOT"
      
        JAVA: "C:\JDKs\jdk1.7.0_67\bin\java"
      
        JAVA_OPTS: "-client -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=
      org.jboss.byteman -Dhttp.nonProxyHosts=localhost^|127.0.0.1^|10.10.10.*"
      
      ===============================================================================
      
      15:50:35,453 INFO  [org.jboss.modules] (main) JBoss Modules version 1.3.4.Final
      15:50:35,781 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.2.Final
      15:50:35,953 INFO  [org.jboss.as] (MSC service thread 1-1) WFLYSRV0049: WildFly 1.0.0.Alpha5 "Kenny" starting
      

      NOTE: It is also not possible to pass such JAVA_OPTS via command line, because it causes the same error:

      C:\wildfly-9.0.0.Alpha1-SNAPSHOT\bin>standalone.bat -Dhttp.nonProxyHosts=localhost|127.0.0.1|10.10.10.*
      
      '127.0.0.1' is not recognized as an internal or external command,
      operable program or batch file.
      

              tomazcerar Tomaž Cerar (Inactive)
              jaysensharma Jay SenSharma (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: