title: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan'
body: <p>I am using Spring <strong>3.2.3.RELEASE</strong> with maven to pull the dependencies. When building the project in Eclipse am getting following error:</p>
  
  <pre><code>Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 17 in XML document from class path resource [META-INF/spring/application-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 17; columnNumber: 64; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan'.
  </code></pre>
  
  <p>My appication-context.xml has the following:</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-3.2.xsd
      http://www.springframework.org/schema/context/
    http://www.springframework.org/schema/context/spring-context-3.2.xsd"&gt;
  
    &lt;context:component-scan base-package="com.example" /&gt;
  </code></pre>
  
  <p>I know that I am pulling the correct jar files as my Maven Dependencies shows:</p>
  
  <p><img src="https://i.stack.imgur.com/q4M9l.png" alt="Eclipse Maven Dependencies"></p>
  
  <p>Inside the META-INF/sping.schemas I can see that I have the right schema declaration in my jar:</p>
  
  <pre><code>http\://www.springframework.org/schema/context/spring-context-2.5.xsd=org/springframework/context/config/spring-context-2.5.xsd
  http\://www.springframework.org/schema/context/spring-context-3.0.xsd=org/springframework/context/config/spring-context-3.0.xsd
  http\://www.springframework.org/schema/context/spring-context-3.1.xsd=org/springframework/context/config/spring-context-3.1.xsd
  http\://www.springframework.org/schema/context/spring-context-3.2.xsd=org/springframework/context/config/spring-context-3.2.xsd
  http\://www.springframework.org/schema/context/spring-context.xsd=org/springframework/context/config/spring-context-3.2.xsd
  </code></pre>
  
  <p>I have also looked at these to no avail:</p>
  
  <p><a href="https://stackoverflow.com/questions/10687511/cant-load-spring-3-schemas">Can&#39;t load spring 3 schemas</a></p>
  
  <p><a href="https://stackoverflow.com/questions/6058037/the-matching-wildcard-is-strict-but-no-declaration-can-be-found-for-element-tx">The matching wildcard is strict, but no declaration can be found for element &#39;tx:annotation-driven&#39;</a></p>
  
  <p><a href="https://stackoverflow.com/questions/11440928/no-declaration-can-be-found-for-element-contextcomponent-scan">No declaration can be found for element &#39;context:component-scan&#39;</a></p>
  
  <p><a href="https://stackoverflow.com/questions/13589470/the-matching-wildcard-is-strict-but-no-declaration-can-be-found-for-element-co">The matching wildcard is strict, but no declaration can be found for element &#39;context:component-scan</a></p>
  
  <p>Please help, it's driving me crazy .... :(</p>