]
RH Bugzilla Integration commented on WFCORE-99:
-----------------------------------------------
Jay SenSharma <jsenshar(a)redhat.com> changed the Status of [bug
standalone.bat script does not parse JAVA_OPTS containing '|'
symbol properly
-----------------------------------------------------------------------------
Key: WFCORE-99
URL:
https://issues.jboss.org/browse/WFCORE-99
Project: WildFly Core
Issue Type: Bug
Components: Scripts
Affects Versions: 1.0.0.Alpha6
Environment: Windows OS
Reporter: Jay Kumar SenSharma
Assignee: Tomaz Cerar
*Scenario -1*
- With the following line of JAVA_OPTS in "standalone.bat.conf" file
{code}
set "JAVA_OPTS=%JAVA_OPTS%
-Dhttp.nonProxyHosts=localhost|127.0.0.1|10.10.10.*"
{code}
Error while starting WildFly
{code}
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.
{code}
*Scenario -2*
- In Windows "^" sign is the escape character so we tried altering the
JAVA_OPTS as following in the "standalone.bat.conf" file:
{code}
set "JAVA_OPTS=%JAVA_OPTS%
-Dhttp.nonProxyHosts=localhost^|127.0.0.1^|10.10.10.*"
{code}
Now WildFly server starts but still we see the following messages in windows console:
{code}
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
{code}
*NOTE*: It is also not possible to pass such JAVA_OPTS via command line, because it
causes the same error:
{code}
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.
{code}