title: Why my Tomcat 7 stop working after deploy
body: <p><br>
  I have a grails app that runs on dev environment and I crated the war without problems.<br>
  In the server, I stop the service using "<strong>sudo service tomcat7 stop</strong>" command and put the war file into the server folder "<strong>/var/lib/tomcat7/webapps</strong>" and start the server again with the command "<strong>sudo service tomcat7 start</strong>".
  For checking the state of the server I run "<strong>sudo service tomcat7 status</strong>" and get the "<em>Tomcat servlet engine is running with pid 19169</em>" response, and check if the application deploys correctly on the folder "<strong>/var/lib/tomcat7/webapps</strong>" and I see the project's folder there.
  Right now, if I check the catalina.out file, I can't see any deploy error having this:
  <br>
  <br> </p>
  
  <blockquote>
    <p>May 27, 2020 9:04:31 PM org.apache.coyote.AbstractProtocol init INFO:
    Initializing ProtocolHandler ["http-bio-80"] May 27, 2020 9:04:31 PM
    org.apache.catalina.startup.Catalina load INFO: Initialization
    processed in 1280 ms May 27, 2020 9:04:31 PM
    org.apache.catalina.core.StandardService startInternal INFO: Starting
    service Catalina May 27, 2020 9:04:31 PM
    org.apache.catalina.core.StandardEngine startInternal INFO: Starting
    Servlet Engine: Apache Tomcat/7.0.26 May 27, 2020 9:04:33 PM
    org.apache.catalina.startup.HostConfig deployDescriptor INFO:
    Deploying configuration descriptor
    /etc/tomcat7/Catalina/localhost/docs.xml May 27, 2020 9:04:33 PM
    org.apache.catalina.startup.HostConfig deployDescriptor INFO:
    Deploying configuration descriptor
    /etc/tomcat7/Catalina/localhost/host-manager.xml May 27, 2020 9:04:33
    PM org.apache.catalina.startup.HostConfig deployDescriptor INFO:
    Deploying configuration descriptor
    /etc/tomcat7/Catalina/localhost/manager.xml May 27, 2020 9:04:33 PM
    org.apache.catalina.startup.HostConfig deployDescriptor INFO:
    Deploying configuration descriptor
    /etc/tomcat7/Catalina/localhost/examples.xml May 27, 2020 9:04:33 PM
    org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web
    application archive /var/lib/tomcat7/webapps/fleetcontroller.war
    log4j:WARN No appenders could be found for logger
    (net.bull.javamelody). log4j:WARN Please initialize the log4j system
    properly. log4j:WARN See
    <a href="http://logging.apache.org/log4j/1.2/faq.html#noconfig" rel="nofollow noreferrer">http://logging.apache.org/log4j/1.2/faq.html#noconfig</a> for more info.</p>
  </blockquote>
  
  <p>But if I wait a while, the tomcat service is stoped.<br>
  When I check the server status with "<strong>sudo service tomcat7 status</strong>" I get this msg</p>
  
  <p><em>Tomcat servlet engine is not running, but pid file exists.</em></p>
  
  <p>And the catalina.out show me:  </p>
  
  <blockquote>
    <p>WARN  intercept.RequestmapFilterInvocationDefinition  - Exception
    initializing; this is ok if it's at startup and due to GORM not being
    initialized yet since the first web request will re-initialize. Error
    message is: {0} 2020-05-27 21:14:13,192 [pool-2-thread-1] WARN 
    module.ModuleDeclarationsFactory  - resources artefact
    KickstartResources does not define any modules | Using LESS files to
    generating CSS files!  </p>
  </blockquote>
  
  <p>Please, if someone can help with that, because I don't know how to find the problem.</p>
  
  <p>Really thanks for your time.</p>