title: Deploying war: No Spring WebApplicationInitializer types detected on classpath
body: <p>I have an weird error when I'm trying to deploy my war file in liferay</p>
  
  <pre><code>РЅРѕСЏ 26, 2015 2:57:08 PM org.apache.catalina.startup.HostConfig deployDirectory
  INFO: Deploying web application directory D:\dev\liferay\liferay-portal-6.2-ce-ga4\tomcat-7.0.42\webapps\site-hook
  РЅРѕСЏ 26, 2015 2:57:10 PM org.apache.catalina.core.ApplicationContext log
  INFO: No Spring WebApplicationInitializer types detected on classpath
  </code></pre>
  
  <p>That's all I have in my logs. I am using tomcat 7.042 with liferay 6.2
  When I build my hook with maven it's ok excepting this line</p>
  
  <pre><code>[WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored 
  (webxml attribute is missing from war task, or ignoreWebxml attribute is specified as 'true')
  </code></pre>
  
  <p>Here is my web.xml</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  
  &lt;web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"&gt;
  </code></pre>
  
  <p></p>
  
  <p>and build section in pom.xml</p>
  
  <pre><code>&lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;com.liferay.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;liferay-maven-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;pluginType&gt;hook&lt;/pluginType&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>The problem appeared ah hour ago, but recently everything was fine. Can you help me?</p>