title: Why does this spring config file not resolve the mvc:resources element
body: <p>I cant get past this error. The mvc xsd is correct and validated that the resources element exists.  Why does this spring config file not resolve the mvc:resources element</p>
  
  <p><strong>SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:resources'</strong></p>
  
  <p>I am using springframework v3.0.2</p>
  
  <pre><code>&lt;beans 
  xmlns="http://www.springframework.org/schema/beans" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:p="http://www.springframework.org/schema/p"
  xmlns:context="http://www.springframework.org/schema/context"
  xmlns:mvc="http://www.springframework.org/schema/mvc"
  xmlns:task="http://www.springframework.org/schema/task"
  xsi:schemaLocation="
  http://www.springframework.org/schema/beans 
  http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  http://www.springframework.org/schema/context 
  http://www.springframework.org/schema/context/spring-context-3.0.xsd
  http://www.springframework.org/schema/task 
  http://www.springframework.org/schema/task/spring-task-3.0.xsd 
  http://www.springframework.org/schema/mvc 
  http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd"&gt;
  
      &lt;context:component-scan annotation-config="true" base-package="com.auto"/&gt;
  
      &lt;mvc:annotation-driven /&gt;
      &lt;mvc:view-controller path="/" view-name="index"/&gt;
  
      &lt;mvc:resources location="/resources/" mapping="/resources/**"/&gt;
  
      &lt;bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
          &lt;property name="prefix" value="/WEB-INF/views/"/&gt;
          &lt;property name="suffix" value=".jsp"/&gt;
      &lt;/bean&gt;
  </code></pre>