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 Reply to “Making Tapestry Pickup Changes without Restarting the Server”

  1. 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

Your email address will not be published. Required fields are marked *