Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jfialli opened this issue Jun 8, 2017 · 0 comments
Open

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

jfialli opened this issue Jun 8, 2017 · 0 comments

Comments

@jfialli
Copy link
Contributor

jfialli commented Jun 8, 2017

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.

@brianoliver brianoliver changed the title unable to launch application mocha.cmd script on windows Unable to launch application mocha.cmd script on windows Jun 8, 2017
@brianoliver brianoliver added this to the 4.x milestone Jun 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants