I am building Java web applications, and I hate the traditional \"code-compile-deploy-test\" cycle. I want to type in one tiny change, then see the result INSTANTLY, without
I also had this problem.
And I didn't want to create any additional classes and messing with web.xml
So here is what you can do:
Assuming you project is maven based and (lets say) called 'my-web-app'
create a file my-web-app/jetty/jetty-config.xml
put this stuff inside:
org.eclipse.jetty.servlet.Default.useFileMappedBuffer
false
Here is your jetty config:
org.eclipse.jetty
jetty-maven-plugin
localhost
8801
/${project.artifactId}
${project.basedir}/jetty/jetty-config.xml
This solution will add an attribute to you servlet-context which will disable static resources locking.
Have fun :)