Jetty – Auto-reload JavaScript and CSS Files

by Michael Scepaniak on September 4, 2010 in software development

If you are developing a web application using Jetty via Eclipse, by default, changes made to static resources such as external JavaScript and CSS files are not picked-up on the fly by the running Jetty server. Out of the box, picking up such changes requires that Jetty be stopped and restarted, possibly with the webapp being redeployed in between. In order to enable hot deployment of such resources, modify the [JETTY_ROOT]/etc/webdefault.xml file like so:


By way of colleague and friend, Justin Alpino.

Want to be notified when new articles are posted?
Enter your email address:

{ 0 comments… add one now }

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed

Previous post:

Next post:

Member of The Internet Defense League