coherence-community / oracle-bedrock

Oracle Bedrock
Other
55 stars 31 forks source link

Unable to launch application mocha.cmd script on windows #413

Open jfialli opened 7 years ago

jfialli commented 7 years ago

Able to specify a script file on OSX and Linux as an application executable, just not on windows.

Stacktrace: java.lang.RuntimeException: Failed to build the underlying native process for the application at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.(ProcessImpl.java:386) at java.lang.ProcessImpl.start(ProcessImpl.java:137) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) at com.oracle.bedrock.runtime.SimpleApplicationLauncher.launch(SimpleApplicationLauncher.java:241) at com.oracle.bedrock.runtime.AbstractPlatform.launch(AbstractPlatform.java:106) at com.oracle.bedrock.runtime.Platform.launch(Platform.java:150) at com.oracle.bedrock.runtime.Platform.launch(Platform.java:123) at com.tangosol.coherence.js.CoherenceJsBasicAuthTests.testBasicAuth(CoherenceJsBasicAuthTests.java:57)

Here is relevant log output of command: Jun 08, 2017 11:20:39 AM com.oracle.bedrock.runtime.SimpleApplicationLauncher launch INFO: Oracle Bedrock 4.4.0-SNAPSHOT: Starting Application...

                    : COHERENCEJS_HOST   : 127.0.0.1
                    : COHERENCEJS_PORT   : 8091
                    : COHERENCEJS_SCHEME : http

Application : mocha BasicAuthTest Application Arguments : ../coherence-js-tests\test\BasicAuthTest.js Application Executable : node_modules.bin\mocha.cmd Environment Variables : (based on parent process) Target Platform : Local Working Directory : C:\hudson\workspace\CoherenceJS-Windows\prj\coherence-js-project\coherence-js


Workaround is to specify node as application (node.exe on windows) and provide mocha as a Application argument.