The context.xml

How to turn on servlet reloading:

  • Use a text editor to open the context.xml file in Tomcat's conf directory
  • Add the reloadable attribute to the Context element and set this attribute to true:
    • <Context reloadable=true">
  • Save the changes to the context.xml file
  • If necessary, restart Tomcat.

Description:

  • By default, reloading is dis-abled.
  • It is a performance hit to put this in production, but is useful in development.
  • These settings are global and affects all instances of Tomcat.