Jetty: Files locked on Windows

March 14th, 2010 by jeremychone

On Windows the Jetty buffers locks file. To fix that, set the following in the application servlet context xml or webdefault.xml.

<init-param>
  <param-name>useFileMappedBuffer</param-name>
  <param-value><strong>false</strong></param-value>
  <!-- default is true (you might want to keep it to true on your linux/production system) -->
</init-param>

Source

Leave a Reply