Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] path to deploy a WAR

You have separate directories.

One for ${jetty.home} (sometimes referred to as $JETTY_HOME) - this is your unpacked `jetty-home` archive/tarball (or the older `jetty-distribution` archive/tarball) - leave this directory alone, don't edit it, don't change it, don't add things, don't delete things.  Generally speaking treat this directory as read-only.

Then you have the ${jetty.base} directory, this is your specific instance configuration.
The ${jetty.base} directory is not the same directory as ${jetty.home}.
The ${jetty.base} directory is not contained within the ${jetty.home} directory.
The ${jetty.base} directory does not contain the ${jetty.home} directory.

This is documented at

But a general/quick example (in shell speak) is ...

$ mkdir /path/to/myjettybase
$ cd /path/to/myjettybase
# Configure it
$ java -jar /path/to/jetty-home/start.jar --add-to-start=http,deploy,annotations
$ cp /tmp/myapp.war /path/to/myjettybase/webapps/

# Show what the configuration looks like
$ cd /path/to/myjettybase
$ java -jar /path/to/jetty-home/start.jar --list-config

# Start Jetty
$ cd /path/to/myjettybase
$ java -jar /path/to/jetty-home/start.jar

Joakim Erdfelt / joakim@xxxxxxxxxxx

On Mon, Jun 22, 2020 at 6:04 PM Nicholas <saunders.nicholas@xxxxxxxxx> wrote:
How do I deploy a WAR file by copying it to a directory?

Basically it boils down to this:  where is the JETTY_HOME directory?  It
varies from distro to distoro, sure.  When I asked on Ubuntu IRC the
response was that Jetty isn't well documented. Perhaps it's well
documented, but I for one cannot figure out where the directory is, either.

I can see some directories relating to this:

perhaps Ubuntu should document JETTY_HOME, but they don't -- that I
could find.  So, I'm asking here.



jetty-users mailing list
To unsubscribe from this list, visit

Back to the top