Metawerx Java Hosting Small Logo

autoDeploy (Tomcat)

AutoDeploy is a feature of Tomcat, where every 15 seconds, Tomcat scans all of your web application folders for a WEB-INF/web.xml file and automatically deploys new applications, or restarts applications where the web.xml file has changed.

For an example, create a folder called "test" in your webapps folder, then create a valid web.xml file as test/WEB-INF/web.xml.

If autoDeploy is enabled, within 15 seconds this application will appear in your Tomcat Manager.

Troubleshooting

  • Tomcat will not automatically deploy an application if the web.xml file has errors. In this case you will be able to see it in the Tomcat Manager and see the error when you click Start. You will also see the error in the System.out logs.
  • Tomcat will sometimes not automatically restart an application if there are active sessions, in this case it will be necessary to manually restart the application using the Tomcat Manager. In worst cases, it will be necessary to stop the application, wait a little while (10-30 seconds), then start it again.

More Information

navigation
metawerx specific
search
Share
tools
help

referring pages

Share