title: tomcat HTTP Status 404 – Not Found after GCP VM upgrade
body: <p>I did a VM edit on my GCP - stopping and starting the VM after making changes to the machine type etc.
  After the change, my tomcat suddenly started giving</p>
  <p>curl http://localhost:8080/</p>
  <p>&lt;!doctype html&gt;HTTP Status 404 – Not Foundbody {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}<h1>HTTP Status 404 – Not Found</h1><p><b>Type</b> Status Report</p><p><b>Message</b> Not found</p><p><b>Description</b> The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.</p><h3>Apache Tomcat/8.5.54 (Debian)</h3></p>
  <p>I am not too familiar with tomcat and have tried numerous searches on google and it didnt help.
  Starting and stopping the server are working fine</p>
  <p>Here are the path variables</p>
  <p>/usr/share/tomcat8/bin/shutdown.sh</p>
  <pre><code>    Using CATALINA_BASE:   /usr/share/tomcat8/
      
      Using CATALINA_HOME:   /usr/share/tomcat8/
      
      Using CATALINA_TMPDIR: /usr/share/tomcat8//temp
      
      Using JRE_HOME:        /usr/lib/jvm/java-1.8.0-openjdk-amd64
  
  Using CLASSPATH:       /usr/share/tomcat8//bin/bootstrap.jar:/usr/share/tomcat8//bin/tomcat-juli.jar
  </code></pre>
  <p>my application is at</p>
  <pre><code>/var/lib/tomcat8/webapps/
  </code></pre>