title: The matching wildcard is strict, but no declaration can be found for element 'tx:annotation-driven' 'context:component-scan'
body: <p>Can anyone identify what is wrong with the namespace declaration below? I've mentioned all the namespaces and gave references to the schema files. Not sure what else is missing.</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:aop="http://www.springframework.org/schema/aop"
      xmlns:tx="http://www.springframework.org/schema/tx" 
      xmlns:context="http://www.springframework.org/schema/context"
      xsi:schemaLocation="    
            http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd    
            http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd    
            http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd    
            http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"&gt;
  
      &lt;context:component-scan base-package="com.mypackage" /&gt;
      &lt;context:annotation-config /&gt;
      &lt;tx:annotation-driven /&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>Error message:</p>
  
  <blockquote>
    <p>Multiple annotations found at this line:
      - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'tx:annotation-driven'.
      - schema_reference.4: Failed to read schema document '<a href="http://www.springframework.org/schema/tx/spring-tx.xsd" rel="nofollow">http://www.springframework.org/schema/tx/spring-tx.xsd</a>', because 1)
    could not find the document; 2) the    document could not be read; 3)
    the root element of the document is not <code>&lt;xsd:schema&gt;</code>.</p>
  </blockquote>