Jetty needs a work/temp directory to operate.
Default behavior is to use whatever java.io.tmpdir
points to.
However, on many unix installations, this points to /tmp
, and that directory is often cleaned out by other processes.
To fix, either specify a java.io.tmpdir
to be somewhere other than /tmp
$ java -Djava.io.tmpdir=/var/run/jetty -jar start.jar
or create a ${jetty.base}/work/
directory (if running Jetty 9.1+)
or create a ${jetty.home}/work/
directory (if running versions of Jetty prior to 9.1)
See the answer at Jetty: Starts in C:\Temp for more details on how this work/temp directory operates and is configured.