13.6 Deploy is slow or first request 404s

13.6.1 Cause

Tomcat’s autoDeploy window: after you copy Kiss.war into webapps/, Tomcat takes ~10 s to undeploy the old app and deploy the new one. During that window every request is 404.

13.6.2 Action

Wait. If it’s longer than ~30 s, check tomcat/logs/localhost.<date>.log for an exception in the servlet’s static initializer (most often: missing application.ini key, or unpackWARs="false" in server.xml).