title: Spring v3 no declaration can be found for element 'mvc:resources'
body: <h2>Currently Running</h2>
  
  <p>Tomcat: v6</p>
  
  <p>Spring Tools Suite: v2.7.2</p>
  
  <p>Spring Framework: spring-webmvc-3.0.5</p>
  
  <h2>Servlet XML</h2>
  
  <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:mvc="http://www.springframework.org/schema/mvc"
          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.0.xsd
            http://www.springframework.org/schema/mvc/spring-mvc
            http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
            http://www.springframework.org/schema/context
            http://www.springframework.org/schema/context/spring-context-3.0.xsd"&gt;
  
        &lt;mvc:annotation-driven /&gt;
  
        &lt;mvc:resources mapping="/resources/**" location="/resources" /&gt;
  
        &lt;context:component-scan base-package="com.app.mvc" /&gt;
  
   &lt;/beans&gt;
  </code></pre>
  
  <h2>web.xml partial code</h2>
  
  <pre><code>&lt;servlet-mapping&gt;
      &lt;servlet-name&gt;duckapp&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <h2>Servlet Purpose</h2>
  
  <p>web.xml maps all urls to the servlet with the exception of mvc:resources mapping static files.</p>
  
  <h2>Bugs</h2>
  
  <ul>
  <li><p>cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:annotation-driven'.    app-servlet.xml /app/www/WEB-INF</p></li>
  <li><p>cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:resources'.    app-servlet.xml /app/www/WEB-INF</p></li>
  </ul>
  
  <h2>Known Issues</h2>
  
  <ul>
  <li><p><a href="http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd" rel="noreferrer">http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd</a> doesn't contain the element resource</p></li>
  <li><p>If replaced by <a href="http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd" rel="noreferrer">http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd</a> still doesn't work and may not be working according to jar files of spring 3.05</p></li>
  <li><p>mvc:resources appeared in spring v3.0.4, but has no new xsd</p></li>
  </ul>
  
  <h2>Question</h2>
  
  <p>How can I fix the compile errors to get mvc:resources working correctly?</p>
  
  <p>I've been digging around 2 hours for this, no solid answer yet...</p>