OpenLiberty / guides-common

Common Guide files
Other
9 stars 6 forks source link

Update guides to use Dev Mode #300

Closed yeekangc closed 4 years ago

yeekangc commented 5 years ago

FYI, @ericglau @kathrynkodama @proubatsis.

Plan:

Required changes:

gkwan-ibm commented 5 years ago
gkwan-ibm commented 5 years ago

working on

Note: liberty:run has issue to run loose application

gkwan-ibm commented 5 years ago
gkwan-ibm commented 5 years ago
gkwan-ibm commented 5 years ago
gkwan-ibm commented 5 years ago

Issues for dev-mode:

Getting Started guide

Rest Intro guide

evelinec commented 5 years ago
gkwan-ibm commented 5 years ago

Verify Liberty Maven Plugin (LMP) 3.0.2-SNAPSHOT with OL 19.0.0.10 GM Candidate

Preparation:

Verification:

gkwan-ibm commented 5 years ago

@yeekangc would you review dev mode? for Getting Started http://lgdev1.fyre.ibm.com:4060/guides/getting-started.html for Rest Intro http://lgdev1.fyre.ibm.com:4060/guides/rest-intro.html

evelinec commented 5 years ago

Linux test info:

[INFO] --- liberty-maven-plugin:3.0.2-SNAPSHOT:dev (default-cli) @ guide-getting-started ---
[INFO] Launching defaultServer (Open Liberty 19.0.0.10/wlp-1.0.33.cl191020191002-0300) on Eclipse OpenJ9 VM, version 11.0.4+11 (en_US)
java -version
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.15.1, JRE 11 Linux amd64-64-Bit Compressed References 20190717_286 (JIT enabled, AOT enabled)
OpenJ9   - 0f66c6431
OMR      - ec782f26
JCL      - fa49279450 based on jdk-11.0.4+11)

The release jdk11.0.4 above gave the segmentation error when add a feature then add a element in server.xml:

[INFO] Unhandled exception
[INFO] Type=Segmentation error vmState=0x00040000

The openj9 nightly build (below) was working:

java -version
openjdk version "11.0.5" 2019-10-15
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.5+9)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.17.0-m2, JRE 11 Linux amd64-64-Bit Compressed References 20191007_350 (JIT enabled, AOT enabled)
OpenJ9   - 23b8b11b4
OMR      - 20db4fbc
JCL      - c210c1e1a3 based on jdk-11.0.5+9)
NimG98 commented 5 years ago

Regarding core dump issue OpenLiberty/ci.maven#589:

Other verifications:

jonathanxue commented 5 years ago

MAC Test info:

[INFO] --- liberty-maven-plugin:3.0.2-SNAPSHOT:dev (default-cli) @ guide-rest-intro ---

[INFO] --- liberty-maven-plugin:3.0.2-SNAPSHOT:dev (default-cli) @ guide-getting-started ---

Everything works now.

MaiHameed commented 5 years ago

Verify Liberty Maven Plugin (LMP) 3.0.2-SNAPSHOT with OL 19.0.0.10 GM Candidate

On Windows:

Getting Started

[INFO] --- liberty-maven-plugin:3.0.2-SNAPSHOT:dev (default-cli) @ guide-getting-started ---
[INFO] CWWKM2102I: Using artifact based assembly archive : io.openliberty:openliberty-kernel:null:19.0.0.10:zip.

java -version produces:

openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.15.1, JRE 11 Windows 10 amd64-64-Bit Compressed References 20190717_282 (JIT enabled, AOT enabled)
OpenJ9   - 0f66c6431
OMR      - ec782f26
JCL      - fa49279450 based on jdk-11.0.4+11)

End-to-end completed, everything works as expected.

Rest Intro

[INFO] --- liberty-maven-plugin:3.0.1:dev (default-cli) @ guide-rest-intro ---
[INFO] CWWKM2102I: Using artifact based assembly archive : io.openliberty:openliberty-kernel:null:19.0.0.10:zip.

java -version produces:

openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.15.1, JRE 11 Windows 10 amd64-64-Bit Compressed References 20190717_282 (JIT enabled, AOT enabled)
OpenJ9   - 0f66c6431
OMR      - ec782f26
JCL      - fa49279450 based on jdk-11.0.4+11)

End-to-end completed, everything works as expected.

gkwan-ibm commented 5 years ago

Verify Liberty Maven Plugin (LMP) 3.1-SNAPSHOT with OL 19.0.0.10 GM Candidate

Preparation:

Verification:

gkwan-ibm commented 5 years ago

Verify the published Liberty Maven Plugin (LMP) 3.1 with OL 19.0.0.10 GM

Preparation:

Verification:

yeekangc commented 5 years ago

Should consider having the instructions for launching into dev mode (development mode) as a common include under "Getting Started" as a sub-section after "Try what you'll build". Should offer proper context/intro to dev mode there too.

yeekangc commented 5 years ago

Ref https://github.com/OpenLiberty/guides-common/issues/300#issuecomment-539717496, I filed issues and made comments where appropriate with my feedback. I am fine for us to move forward to push out the updates. ID reviews will be helpful.

NimG98 commented 5 years ago

Liberty Maven Plugin (LMP) 3.1-SNAPSHOT with OL 19.0.0.10 GM Candidate

Verifying OpenJ9 JDK11 latest nightly, Rest Intro, linux:

MaiHameed commented 5 years ago

Liberty Maven Plugin (LMP) 3.1-SNAPSHOT with OL 19.0.0.10 GM Candidate

Getting Started

From the console:

[INFO] --- liberty-maven-plugin:3.1-SNAPSHOT:dev (default-cli) @ guide-getting-started ---
[INFO] CWWKM2102I: Using artifact based assembly archive : io.openliberty:openliberty-kernel:null:19.0.0.10:zip.

messages.log:

product = Open Liberty 19.0.0.10 (wlp-1.0.33.cl191020191002-0300)
java.home = C:\Program Files\AdoptOpenJDK\jdk-11.0.4.11-openj9
java.version = 11.0.4
java.runtime = OpenJDK Runtime Environment (11.0.4+11)
os = Windows 10 (10.0; amd64) (en_CA)

~Rest Intro~ ~⚠️ Error when running mvn liberty:run in the /finish directory:~

[INFO] [ERROR   ] CWWKF0001E: A feature definition could not be found for jaxrs-2.1

~Similar to this issue.~

~Environment Details:~

Didn't realize I wasn't supposed to test this guide, ignore this.

salmad3 commented 5 years ago

Liberty Maven Plugin (LMP) 3.1-SNAPSHOT with OL 19.0.0.10 GM Candidate

Getting Started

[INFO] --- liberty-maven-plugin:3.1-SNAPSHOT:dev (default-cli) @ guide-getting-started ---
[INFO] CWWKM2102I: Using artifact based assembly archive : io.openliberty:openliberty-kernel:null:19.0.0.10:zip.
product = Open Liberty 19.0.0.10 (wlp-1.0.33.cl191020191002-0300)
java.home = /Library/Java/JavaVirtualMachines/adoptopenjdk-11.0.4.jdk/Contents/Home
java.version = 11.0.4
java.runtime = OpenJDK Runtime Environment (11.0.4+11)
os = Mac OS X (10.14.6; x86_64) (en_CA)
jonathanxue commented 5 years ago

Liberty Maven Plugin (LMP) 3.1-SNAPSHOT with OL 19.0.0.10 GM Candidate

rest-intro - OpenJ9 - JDK11 - Mac

Console output:

[INFO] --- liberty-maven-plugin:3.1-SNAPSHOT:run (default-cli) @ guide-rest-intro --- [INFO] Launching defaultServer (Open Liberty 19.0.0.10/wlp-1.0.33.cl191020191002-0300) on Eclipse OpenJ9 VM, version 11.0.4+11 (en_CA)

Version output


OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.15.1, JRE 11 Mac OS X amd64-64-Bit Compressed References 20190823_327 (JIT enabled, AOT enabled)
OpenJ9   - 0f66c6431
OMR      - ec782f26
JCL      - fa49279450 based on jdk-11.0.4+11)```
NimG98 commented 5 years ago

Liberty Maven Plugin (LMP) 3.1 with OL 19.0.0.10 GM

Getting Started: Hotspot JDK 11 latest release, Linux

Rest Intro: OpenJ9 JDK11 latest nightly, Linux

MaiHameed commented 5 years ago

Liberty Maven Plugin (LMP) 3.1 with OL 19.0.0.10 GM

Rest Intro:

Console output:

[INFO] --- liberty-maven-plugin:3.1:dev (default-cli) @ guide-rest-intro ---
[INFO] CWWKM2102I: Using artifact based assembly archive : io.openliberty:openliberty-kernel:null:19.0.0.10:zip.

java -version output:

openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.15.1, JRE 11 Windows 10 amd64-64-Bit Compressed References 20190717_282 (JIT enabled, AOT enabled)
OpenJ9   - 0f66c6431
OMR      - ec782f26
JCL      - fa49279450 based on jdk-11.0.4+11)

End-to-end completed and everything works as expected.

Getting Started:

Console output:

[INFO] --- liberty-maven-plugin:3.1:dev (default-cli) @ guide-getting-started ---
[INFO] CWWKM2102I: Using artifact based assembly archive : io.openliberty:openliberty-kernel:null:19.0.0.10:zip.

java -version output:

openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.4+11, mixed mode)

End-to-end completed and everything works as expected.

jonathanxue commented 5 years ago

Rest-Intro (OpenJ9 JDK11) - Mac

[INFO] --- liberty-maven-plugin:3.1:run (default-cli) @ guide-rest-intro --- [INFO] --- liberty-maven-plugin:3.1:dev (default-cli) @ guide-rest-intro --- [INFO] Launching defaultServer (Open Liberty 19.0.0.10/wlp-1.0.33.cl191020191002-0300) on Eclipse OpenJ9 VM, version 11.0.4+11 (en_CA)

openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.15.1, JRE 11 Mac OS X amd64-64-Bit Compressed References 20190823_327 (JIT enabled, AOT enabled)
OpenJ9   - 0f66c6431
OMR      - ec782f26
JCL      - fa49279450 based on jdk-11.0.4+11)

Getting Started (OpenJ8 JDK8) - Mac

[INFO] --- liberty-maven-plugin:3.1:run (default-cli) @ guide-getting-started --- [INFO] --- liberty-maven-plugin:3.1:dev (default-cli) @ guide-getting-started ---

openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-b10)
Eclipse OpenJ9 VM (build openj9-0.15.1, JRE 1.8.0 Mac OS X amd64-64-Bit Compressed References 20190717_298 (JIT enabled, AOT enabled)
OpenJ9   - 0f66c6431
OMR      - ec782f26
JCL      - f147086df1 based on jdk8u222-b10)

ctl-c Error - mvn:liberty-dev

When using ctl-c to close the service, the following error appears. Exiting using liberty:stop works fine.

rest-intro

[ERROR] An error occurred while starting the server: CWWKM2002E: Failed to invoke [/Users/jonathan.xueibm.com/Github/guide-rest-intro/finish/target/liberty/wlp/bin/server, debug, defaultServer]. RC= 130 but expected=[0].
org.apache.tools.ant.BuildException: CWWKM2002E: Failed to invoke [/Users/jonathan.xueibm.com/Github/guide-rest-intro/finish/target/liberty/wlp/bin/server, debug, defaultServer]. RC= 130 but expected=[0].

Getting started

[ERROR] An error occurred while starting the server: CWWKM2002E: Failed to invoke [/Users/jonathan.xueibm.com/Github/guide-getting-started/start/target/liberty/wlp/bin/server, debug, defaultServer]. RC= 255 but expected=[0].
org.apache.tools.ant.BuildException: CWWKM2002E: Failed to invoke [/Users/jonathan.xueibm.com/Github/guide-getting-started/start/target/liberty/wlp/bin/server, debug, defaultServer]. RC= 255 but expected=[0].

EDIT: There is an issue for this problem here https://github.com/OpenLiberty/ci.maven/issues/661

gkwan-ibm commented 4 years ago

completed expect the following guides which will be handled by individual issues