tomcat application started but destroy immediately
<p>I have deployed my application in my linux box. I am using easy <code>apache tomcat 7</code> version. I am able to see my tomcat <code>context is initialized</code> <strong>but immediately after initialization</strong>, context is getting destroyed. I am not seeing any exception happening in the log file.</p>

<blockquote>
  <p>[Loaded
  org.springframework.util.ConcurrentReferenceHashMap$EntryIterator from
  file:/var/cache/easy-tomcat7/work/Catalina/web.com/web-1.0.0-BUILD-SNAPSHOT/WEB-INF/lib/spring-core-4.2.1.RELEASE.jar]
  DEBUG: org.springframework.web.context.ContextLoader - Published root
  WebApplicationContext as ServletContext attribute with name
  [org.springframework.web.context.WebApplicationContext.ROOT] INFO :
  org.springframework.web.context.ContextLoader - Root
  WebApplicationContext: initialization completed in 7637 ms INFO :
  org.springframework.web.context.support.XmlWebApplicationContext -
  Closing Root WebApplicationContext: startup date [Sun May 22 07:58:10
  UTC 2016]; root of context hierarchy   DEBUG:
  org.springframework.core.env.PropertySourcesPropertyResolver -
  Searching for key 'spring.liveBeansView.mbeanDomain' in
  [servletConfigInitParams] DEBUG:
  org.springframework.core.env.PropertySourcesPropertyResolver -
  Searching for key 'spring.liveBeansView.mbeanDomain' in
  [servletContextInitParams] DEBUG:
  org.springframework.core.env.PropertySourcesPropertyResolver - Found
  key 'spring.liveBeansView.mbeanDomain' in [servletContextInitParams]
  with type [String] and value 'dev' DEBUG:
  org.springframework.beans.factory.support.DefaultListableBeanFactory -
  Returning cached instance of singleton bean 'lifecycleProcessor'
  DEBUG:
  org.springframework.beans.factory.support.DefaultListableBeanFactory -
  Destroying singletons in
  org.springframework.beans.factory.support.DefaultListableBeanFactory@2b48a930:</p>
</blockquote>

<p>This is the web.xml file. </p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0"&gt;
  &lt;display-name&gt;web&lt;/display-name&gt;
  &lt;context-param&gt;
    &lt;param-name&gt;log4jConfigLocation&lt;/param-name&gt;
    &lt;param-value&gt;/WEB-INF/config/log4j.xml&lt;/param-value&gt;
  &lt;/context-param&gt;
  &lt;context-param&gt;  
    &lt;param-name&gt;spring.profiles.active&lt;/param-name&gt;  
    &lt;param-value&gt;dev&lt;/param-value&gt;  
&lt;/context-param&gt;  
&lt;context-param&gt;  
    &lt;param-name&gt;spring.profiles.default&lt;/param-name&gt;  
    &lt;param-value&gt;dev&lt;/param-value&gt;  
&lt;/context-param&gt;
&lt;context-param&gt;  
    &lt;param-name&gt;spring.liveBeansView.mbeanDomain&lt;/param-name&gt;  
    &lt;param-value&gt;dev&lt;/param-value&gt;  
&lt;/context-param&gt;  
  &lt;listener&gt;
    &lt;listener-class&gt;org.springframework.web.util.Log4jConfigListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  &lt;filter&gt;
    &lt;filter-name&gt;springSecurityFilterChain&lt;/filter-name&gt;
    &lt;filter-class&gt;org.springframework.web.filter.DelegatingFilterProxy&lt;/filter-class&gt;
  &lt;/filter&gt;
  &lt;filter-mapping&gt;
    &lt;filter-name&gt;springSecurityFilterChain&lt;/filter-name&gt;
    &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  &lt;filter-mapping&gt;
    &lt;filter-name&gt;springSecurityFilterChain&lt;/filter-name&gt;
    &lt;url-pattern&gt;/login/auth&lt;/url-pattern&gt;
    &lt;dispatcher&gt;FORWARD&lt;/dispatcher&gt;
  &lt;/filter-mapping&gt;
  &lt;filter&gt;
    &lt;filter-name&gt;hiddenHttpMethodFilter&lt;/filter-name&gt;
    &lt;filter-class&gt;org.springframework.web.filter.HiddenHttpMethodFilter&lt;/filter-class&gt;
  &lt;/filter&gt;
  &lt;filter-mapping&gt;
    &lt;filter-name&gt;hiddenHttpMethodFilter&lt;/filter-name&gt;
    &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  &lt;context-param&gt;
    &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
    &lt;param-value&gt;
            /WEB-INF/spring/root-context.xml            
            /WEB-INF/spring/appServlet/security-context.xml
        &lt;/param-value&gt;
  &lt;/context-param&gt;
  &lt;listener&gt;
    &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  &lt;servlet&gt;
    &lt;servlet-name&gt;web&lt;/servlet-name&gt;
    &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
    &lt;init-param&gt;
      &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
      &lt;param-value&gt;/WEB-INF/spring/appServlet/servlet-context.xml&lt;/param-value&gt;
    &lt;/init-param&gt;
    &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
    &lt;servlet-name&gt;web&lt;/servlet-name&gt;
    &lt;url-pattern&gt;/&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
&lt;/web-app&gt;
</code></pre>

<p>root-context.xml</p>

<pre><code>    &lt;beans:beans xmlns="http://www.springframework.org/schema/mvc"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"
    xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:jdbc="http://www.springframework.org/schema/jdbc"
    xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
        http://www.springframework.org/schema/jdbc
        http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd"&gt;        


&lt;/beans:beans&gt;
</code></pre>