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

"JAVA_OPTS" is not correctly set in standalone.bat

    XMLWordPrintable

Details

    • Hide

      1. add the following line in "standalone.conf.bat"
      set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.nonProxyHosts=localhost^|127.0.0.1"

      2. run "standalone.bat"

      3. EAP does not start.

      Show
      1. add the following line in "standalone.conf.bat" set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.nonProxyHosts=localhost^|127.0.0.1" 2. run "standalone.bat" 3. EAP does not start.
    • undefined

    Description

      The  "standalone.bat" can handle "JAVA_OPTS" incorrectly. For example, when the escaped pipe "^|" value is specified in "-Dhttp.nonProxyHosts" for configuring multiple hosts.

      If updating "standalone.bat" like [TO BE], WildFly can be started.

      As there are some references to "JAVA_OPTS" variable in "standalone.bat", please review them to prevent similar events like this ticket.

       

      [AS IS]

      253 if not errorlevel == 1 (
      254 set "JAVA_OPTS=%JAVA_OPTS% !TMP_PARAM!"
      255 )

      [TO BE]

       253 if not errorlevel == 1 (
       254 set "!JAVA_OPTS! !TMP_PARAM!"
       255 )

      Attachments

        Issue Links

          Activity

            People

              rchakrab Ranabir Chakraborty
              rchakrab Ranabir Chakraborty
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: