By default Jetty locks files with static content on Windows, so you cannot edit and reload them by just refreshing the browser hitting F5.
To overcome this, you have to change the init-parms of the default servlet. You can do this in the web.xml by setting the parameter useFileMappedBuffer to false.
Example :

<?xml version= "1.0" encoding ="UTF-8"?>
<web-app xmlns:xsi= ""
        xmlns= "" xmlns:web=""
        id= "WebApp_ID" version ="3.0">
         <display-name>my-app</display-name >
                <servlet-name>default</ servlet-name>
                <servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class >
                        <param-name>useFileMappedBuffer</param-name >
                        <param-value>false</ param-value>


comments powered by Disqus