title: Avoid temporary 404 errors during deployment with tomcat
body: <p>Every time I copy <code>OpenGrok/dist/source.war</code> to <code>/var/tomcat/webapps/</code>, the tomcat generates blank error pages with <code>404 Not Found</code> errors to my users, during a couple of seconds immediately after such copying.</p>
  
  <pre><code>HTTP/1.1 404 Not Found
  Server: Apache-Coyote/1.1
  Content-Length: 0
  Date: Tue, 02 Apr 2013 19:00:14 GMT
  Connection: close
  </code></pre>
  
  <p>This is not acceptable.  Am I not deploying correctly, by manually copying a <code>.war</code> file into a tomcat directory, or is it an OpenGrok bug of some sort?  How do I ensure there's not a single visitor that'd be getting an undue <code>404</code> during the deployment process?</p>