title: Error "The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'" via tomcat7
body: <p>I have faced with strange situation.
  When I run my project via intellij idea with following configuration - <code>clean install tomcat7:run -e</code> - everything processes successfully.</p>
  
  <p>But when i manually copy .war file into the tomcat7 directory and start server i am getting an error in tomcat log:</p>
  
  <blockquote>
    <p>SEVERE: Exception sending context initialized event to listener
    instance of class
    org.springframework.web.context.ContextLoaderListener
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
    Line 8 in XML document from ServletContext resource
    [/WEB-INF/spring/spring.xml] is invalid; nested exception is
    org.xml.sax.SAXParseException; lineNumber: 8; columnNumber: 33;
    cvc-complex-type.2.4.c: The matching wildcard is strict, but no
    declaration can be found for element 'context:annotation-config'.</p>
  </blockquote>
  
  <p>Here is my spring.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:context="http://www.springframework.org/schema/context"
         xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
                             http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.1.xsd"&gt;
  
      &lt;context:annotation-config/&gt;
  ....
  </code></pre>
  
  <p>I have found some solutions regarding namespaces but they don't work for me.</p>