This repository was archived by the owner on Mar 6, 2020. It is now read-only.
Webapp service in Open Liberty #1
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@arun-gupta From the old PR:
Added three new profiles:
wildfly
for starting the service in Wildfly,openliberty
for starting the service in Open Liberty,docker-openliberty
for building a Docker image for Open Liberty.To start the service in Wildfly as before, run:
To start the service in Open Liberty, run:
Just in case, run the
clean
goal when switching between runtimes.New changes:
The
src/main/openliberty/config
directory contains three files:server.xml
contains the server configuration. This is where you can enable various features in the server.bootstrap.properties
contains the runtime variables.server.env
contains environment variables.Justification for code changes:
Added a slash to the url pattern in the
web.xml
file as outlined in the servlet spec.Open Liberty also requires the JavaEE JAX-RS, so hence the reason for adding
javax.ws.rs-api
dependency and separating the two JAX-RS versions into the two profiles.I also made some suggestive changes to
WebappController.java
. I can change these back if you prefer the old approach.