Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Jetty/Troubleshooting"
< Jetty
(New page: {{Jetty}}) |
|||
Line 1: | Line 1: | ||
− | {{Jetty}} | + | {{Jetty FAQ Section}} |
+ | |||
+ | == Saving == | ||
+ | |||
+ | {{Jetty FAQ | ||
+ | | question = Why do I get a "Save could not be completed" error in Eclipse whenever I try to save a file while Jetty is running? | ||
+ | | answer = This is a limitation of Windows -- having a file open in one process means that you can't write to that same file with another process. | ||
+ | |||
+ | Since Jetty has mapped the file to its cache, which prevents the file from being edited, you'll need to turn off caching to work around the problem. You can turn off caching in the default servlet by setting <code><useFileMappedBuffer></code> to <code>false</code> in [[Jetty/Reference/webdefault.xml|webdefault.xml]]. | ||
+ | |||
+ | }} |
Revision as of 05:06, 21 July 2009
Saving
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 -- having a file open in one process means that you can't write to that same file with another process.
Since Jetty has mapped the file to its cache, which prevents the file from being edited, you'll need to turn off caching to work around the problem. You can turn off caching in the default servlet by setting
<useFileMappedBuffer>
to false
in webdefault.xml.