title: <mvc:argument-resolvers> Not allowed here
body: <p>This is my spring-context file:</p>
  
  <pre><code>&lt;beans:beans xmlns="http://www.springframework.org/schema/mvc"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"
  xmlns:context="http://www.springframework.org/schema/context"
  xmlns:mvc="http://www.springframework.org/schema/mvc"
  xsi:schemaLocation="http://www.springframework.org/schema/mvc
  http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
  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"&gt;
  
  &lt;beans:bean id="messageSource"
      class="org.springframework.context.support.ReloadableResourceBundleMessageSource"&gt;
      &lt;beans:property name="basename" value="classpath:i18n/messages" /&gt;
      &lt;beans:property name="defaultEncoding" value="UTF-8" /&gt;
  &lt;/beans:bean&gt;
  
  &lt;annotation-driven/&gt;
  &lt;resources mapping="/resources/**" location="WEB-INF/resources/" /&gt;
  &lt;context:component-scan base-package="com.softserve.edu.controller" /&gt;
  
  &lt;mvc:annotation-driven&gt;
      &lt;mvc:argument-resolvers&gt;
          &lt;ref bean="sortResolver"/&gt;
          &lt;ref bean="pageableResolver" /&gt;
      &lt;/mvc:argument-resolvers&gt;
  &lt;/mvc:annotation-driven&gt;
  
  &lt;bean id="sortResolver" class="org.springframework.data.web.SortHandlerMethodArgumentResolver" /&gt;
  &lt;bean id="pageableResolver" class="org.springframework.data.web.PageableHandlerMethodArgumentResolver"&gt;
      &lt;constructor-arg ref="sortResovler" /&gt;
  &lt;/bean&gt;
  ...
  </code></pre>
  
  <p>When compiling I get </p>
  
  <pre><code>Element 'mvc:annotation-driven' must have no character or element information item [children], because the type's content type is empty
  </code></pre>
  
  <p>Why this error appear and how get this thing to work?
  I'm sure that part with  and  is wrong, but I don't know how to fix this.</p>