Bug 1149971
| Summary: | standalone.bat script does not parse JAVA_OPTS containing '|' symbol properly | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Jay SenSharma <jsenshar> |
| Component: | Scripts and Commands | Assignee: | Jay SenSharma <jsenshar> |
| Status: | CLOSED DUPLICATE | QA Contact: | Petr Kremensky <pkremens> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.1.1 | CC: | fnasser, pgier, sjadhav |
| Target Milestone: | --- | ||
| Target Release: | EAP 6.4.0 | ||
| Hardware: | All | ||
| OS: | Windows | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-10-07 04:53:50 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** This bug has been marked as a duplicate of bug 1145185 *** |
Description of problem: ======================= *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 jboss-eap {code} 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. {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 jboss-eap server starts but still we see the following messages in windows console: {code} 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. '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. {code} Version-Release number of selected component (if applicable): How reproducible: ================= Steps to Reproduce: 1. Edit the "jboss-eap-6.1.1\bin\standalone.conf.bat" by adding the following line of entry in it: {code} set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.nonProxyHosts=localhost|127.0.0.1|10.10.10.*" {code} OR {code} set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.nonProxyHosts=localhost^|127.0.0.1^|10.10.10.*" {code} 2. Restart jboss-eap and notice the error messages in the Windows Console. Actual results: =============== - Unexpected messaes like following appears during eap start: '127.0.0.1' is not recognized as an internal or external command, operable program or batch file. Expected results: =============== - EAP should have started cleanly without the mentioned messages. Additional info: =============== - Issue is specific to Windows Environment.