title: spring 4.0.2 schema error
body: <p>I am trying to upgrade my spring 3.4 application to spring 4.0.2</p>
  
  <p>I imported all the spring-4.0.2 jar files but am getting errors in the dispatcher-servlet.xml</p>
  
  <p>if I use this code, I get Referenced file contains errors (<a href="http://www.springframework.org/schema/beans/spring-beans-4.0.xsd" rel="nofollow">http://www.springframework.org/schema/beans/spring-beans-4.0.xsd</a>)</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:mvc="http://www.springframework.org/schema/mvc"
  xmlns:context="http://www.springframework.org/schema/context"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="
  http://www.springframework.org/schema/beans
  http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
  http://www.springframework.org/schema/mvc
  http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
  http://www.springframework.org/schema/context
  http://www.springframework.org/schema/context/spring-context-4.0.xsd"&gt;
  
  
          &lt;!--  automatic scan base folder to detect controllers --&gt;
      &lt;context:component-scan base-package="com.shaw.csdss"/&gt;
      &lt;mvc:annotation-driven /&gt;
  
      &lt;!--  This file will contain the view name mappings to the jsp --&gt;
      &lt;bean id = "jspViewResolver" 
            class="org.springframework.web.servlet.view.InternalResourceViewResolver" &gt;
           &lt;property name="prefix"&gt;&lt;value&gt;/&lt;/value&gt;&lt;/property&gt;
           &lt;property name="suffix"&gt;&lt;value&gt;.jsp&lt;/value&gt;&lt;/property&gt;
           &lt;property name="order" value="1" /&gt;
      &lt;/bean&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>I tried to remove the -4.0 from the xsd references but I get same error on spring-mvc-xsd now.</p>
  
  <p>I even tried to discard everything and just copy the xml from the spring reference documentation as follow</p>
  
  <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:mvc="http://www.springframework.org/schema/mvc"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="
  http://www.springframework.org/schema/beans
  http://www.springframework.org/schema/beans/spring-beans.xsd
  http://www.springframework.org/schema/mvc
  http://www.springframework.org/schema/mvc/spring-mvc.xsd"&gt;
  
  &lt;mvc:annotation-driven /&gt;
  
  &lt;bean id = "jspViewResolver" 
      class="org.springframework.web.servlet.view.InternalResourceViewResolver" &gt;
      &lt;property name="prefix"&gt;&lt;value&gt;/&lt;/value&gt;&lt;/property&gt;
      &lt;property name="suffix"&gt;&lt;value&gt;.jsp&lt;/value&gt;&lt;/property&gt;
      &lt;property name="order" value="1" /&gt;
  &lt;/bean&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p>but with this simple file I get error on </p>
  
  <p>cvc-complex-type.2.4.c: the matching wildcard is strict, but no declaration can be found of element 'mvcannotation-driven</p>
  
  <p>Any example I take from spring4.0 reference document, gives me same error.</p>
  
  <p>is this a problem with spring4.0.2 or am I missing something?</p>
  
  <p>Thank you for your help</p>