Making Tapestry Pickup Changes without Restarting the Server

I keep losing this tip, so I’m recording it here. In order to have Tapestry reload the changes made in page templates without having to reload the web app, you need to start Tomcat (or any other container) with the following flags:

-Dorg.apache.tapestry.disable-caching=true

If you are using MyEclipse IDE, then configure it like this:

As Geoff notes, this is STRICTLY for development use only. Thanks Geoff!

One Response

  1. Geoff
    Geoff March 13, 2006 at 10:52 pm |

    You should add a note that -Dorg.apache.tapestry.disable-caching=true is not meant to be used in a production environment. It’s a development setting.

    Tapestry apps with that flag set will be very slow as all internal caches are not used. Plus, since it’s not intended for production you can get classloader errors on some server after a while.

    Geoff

Leave a Reply