Save could not be completed


Added by ngonzalez, last edited by Jesse McConnell on Apr 24, 2008  (view change)

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
Contact the core Jetty developers at www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery

Why do I get a "Save could not be completed" error in eclipse whenever I try to save a file while Jetty is running? 

This is a limitation of windows - that having the file open in one process (Jetty has mapped the file to it's cache) means that you can't write that file with another process.

You can turn off caching in the default servlet by setting <useFileMappedBuffer> to false in webdefault.xml. This file may be found in the etc subdirectory of Jetty.  If you are using the maven-jetty-plugin, you'll have to specify its directory location in the pom.xml.

This problem is related to the Troubleshooting entry Files locked on Windows.