OpenLiberty / sample-getting-started

Getting started sample
https://openliberty.io/start/
Other
13 stars 117 forks source link

The generated io.openliberty.sample.getting.started.war does not work elsewhere #74

Closed NK-debug closed 1 year ago

NK-debug commented 2 years ago

"mvnw package" generates "io.openliberty.sample.getting.started.war" of the sample-getting-started example. This .war file does not work if dropped into another standalone Liberty server. The index.html will display, but the microservice will not output the info on that page ("Not Found"). If you hit the link for "API Source" below (should invoke "/system/properties") you get an error: "Context Root Not Found"

NK-debug commented 1 year ago

I was testing the .war file on IBM WebSphere Liberty v21 with webProfile-8.0 (includes servlet-4.0). The .war would probably work on IBM WebSphere v23 with webProfile-9.1 (includes servlet-5.0). See [https://github.com/OpenLiberty/guide-maven-intro/issues/152]