From 86c245d069c42f4bccf217102182cf94d9b72f6e Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Sat, 26 Aug 2023 17:01:21 +0200 Subject: [PATCH] Fixes #10158 - Deploy Jetty context XML file needs environment Updated the documentation; a better fix is coming with #10411. Signed-off-by: Simone Bordet --- .../operations-guide/deploy/deploy-jetty.adoc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/documentation/jetty-documentation/src/main/asciidoc/operations-guide/deploy/deploy-jetty.adoc b/documentation/jetty-documentation/src/main/asciidoc/operations-guide/deploy/deploy-jetty.adoc index 0bf530d6b7fd..d88d8303211a 100644 --- a/documentation/jetty-documentation/src/main/asciidoc/operations-guide/deploy/deploy-jetty.adoc +++ b/documentation/jetty-documentation/src/main/asciidoc/operations-guide/deploy/deploy-jetty.adoc @@ -37,6 +37,16 @@ A simple Jetty context XML file, for example named `wiki.xml` is the following: <2> Specifies the web application `contextPath`, which may be different from the `+*.war+` file name. <3> Specifies the file system path of the `+*.war+` file. +The Jetty content XML file must be accompanied by a `+*.properties+` file that specifies the xref:og-deploy[environment] to use for the deployment: + +.wiki.properties +[source,properties,subs=attributes] +---- +environment={ee-current} +---- + +Refer to xref:og-deploy-rules-environment[this section] for more information about specifying the environment. + The `$JETTY_BASE` directory would look like this: ---- @@ -47,6 +57,7 @@ $JETTY_BASE │ ├── deploy.ini │ └── http.ini └── webapps + ├── wiki.properties └── wiki.xml ----