title: SEVERE: Could not contact localhost:8005. Tomcat may not be running error while shutting down tomcat server.
body: <p>tomcat server is starting multiple number of times but not shutting down. <a href="http://localhost:8080/" rel="nofollow">http://localhost:8080/</a> is blank
  here's the error code in terminal. how to get around this ?</p>
  
  <pre><code>sudo sh shutdown.sh
  Using CATALINA_BASE:   /var/lib/tomcat7
  Using CATALINA_HOME:   /var/lib/tomcat7
  Using CATALINA_TMPDIR: /var/lib/tomcat7/temp
  Using JRE_HOME:        /usr
  Using CLASSPATH:       /var/lib/tomcat7/bin/bootstrap.jar:/var/lib/tomcat7/bin/tomcat-juli.jar
  Nov 23, 2015 4:00:29 PM org.apache.catalina.startup.Catalina stopServer
  SEVERE: Could not contact localhost:8005. Tomcat may not be running.
  Nov 23, 2015 4:00:29 PM org.apache.catalina.startup.Catalina stopServer
  SEVERE: Catalina.stop: 
  java.net.ConnectException: Connection refused
      at java.net.PlainSocketImpl.socketConnect(Native Method)
  at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
  at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
  at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
  at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
  at java.net.Socket.connect(Socket.java:589)
  at java.net.Socket.connect(Socket.java:538)
  at java.net.Socket.&lt;init&gt;(Socket.java:434)
  at java.net.Socket.&lt;init&gt;(Socket.java:211)
  at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:498)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:497)
  at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:343)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:430)
  </code></pre>