ci.maven: Dev mode not work on Windows

Got following error:

[INFO] CWWKM2013I: The file C:\Users\Gilbert\tasks\CNAI\guides\guide-rest-intro\
start\target\liberty\wlp\usr\servers\defaultServer\logs\messages.log being valid
ated does not exist.
[INFO] CWWKM2013I: The file C:\Users\Gilbert\tasks\CNAI\guides\guide-rest-intro\
start\target\liberty\wlp\usr\servers\defaultServer\logs\messages.log being valid
ated does not exist.
[INFO] CWWKM2013I: The file C:\Users\Gilbert\tasks\CNAI\guides\guide-rest-intro\
start\target\liberty\wlp\usr\servers\defaultServer\logs\messages.log being valid
ated does not exist.
[INFO] CWWKM2011E: Timed out searching for CWWKZ0001I.* in C:\Users\Gilbert\task
s\CNAI\guides\guide-rest-intro\start\target\liberty\wlp\usr\servers\defaultServe
r\logs\messages.log.
[INFO] CWWKM2001I: server.config.dir is C:\Users\Gilbert\tasks\CNAI\guides\guide
-rest-intro\start\target\liberty\wlp\usr\servers\defaultServer.
[INFO] CWWKM2001I: server.output.dir is C:\Users\Gilbert\tasks\CNAI\guides\guide
-rest-intro\start\target\liberty\wlp\usr\servers\defaultServer.
[INFO] CWWKM2001I: Invoke command is ["C:\Users\Gilbert\tasks\CNAI\guides\guide-
rest-intro\start\target\liberty\wlp\bin\server.bat", stop, defaultServer].
[INFO] Stopping server defaultServer.
[INFO] Server defaultServer is not running.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:52 min
[INFO] Finished at: 2019-09-13T20:44:28-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.openliberty.tools:liberty-maven-plugin:3.0.1:d
ev (default-cli) on project rest: Unable to verify if the server was started aft
er 30 seconds. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[INFO] CWWKM2001I: server.config.dir is C:\Users\Gilbert\tasks\CNAI\guides\guide
-rest-intro\start\target\liberty\wlp\usr\servers\defaultServer.
[INFO] CWWKM2001I: server.output.dir is C:\Users\Gilbert\tasks\CNAI\guides\guide
-rest-intro\start\target\liberty\wlp\usr\servers\defaultServer.
[INFO] CWWKM2001I: Invoke command is ["C:\Users\Gilbert\tasks\CNAI\guides\guide-
rest-intro\start\target\liberty\wlp\bin\server.bat", stop, defaultServer].
[INFO] Stopping server defaultServer.
[INFO] Server defaultServer is not running.

C:\Users\Gilbert\tasks\CNAI\guides\guide-rest-intro\start>

Used Windows 8 Home and liberty.maven.plugin 3.0.1.

Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T11:06:1
6-04:00)
Maven home: C:\Users\Gilbert\tasks\softwares\apache-maven-3.6.2-bin\apache-maven
-3.6.2\bin\..
Java version: 11.0.4, vendor: AdoptOpenJDK, runtime: C:\Users\Gilbert\tasks\soft
wares\OpenJDK11U-jdk_x64_windows_hotspot_11.0.4_11\jdk-11.0.4+11
Default locale: en_CA, platform encoding: Cp1252
OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "windows"

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 21 (19 by maintainers)

Most upvoted comments

OK, I tried the latest nightly buid “Java version: 11.0.5, vendor: Eclipse OpenJ9”, no more core dump for debugging the application.

I’ve verified this as well with the above nightly build that @scottkurz mentioned.

Also opened the following PRs so dev mode (with debug mode) will work on Windows on previous Liberty releases, even without the server.bat fix: https://github.com/OpenLiberty/ci.maven/pull/624 https://github.com/OpenLiberty/ci.common/pull/91 https://github.com/OpenLiberty/ci.ant/pull/113