title: Weird validation error in beans.xml Spring CXF
body: <p>Currently working on CXF with Spring. It returns this warning:</p>
  
  <pre><code>10:40:38,492 WARN  [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-2)
   Ignored XML validation warning: org.xml.sax.SAXParseException: schema_reference.4:
   Failed to read schema document 'http://cxf.apache.org/schemas/jaxrs.xsd', because 
  1) could not find the document; 2) the document could not be read; 3) the root element of the document is not &lt;xsd:schema&gt;.
  </code></pre>
  
  <p>then it returns this error on startup:</p>
  
  <pre><code>10:40:38,571 ERROR [org.springframework.web.context.ContextLoader] (MSC service thread 1-2) 
  Context initialization failed: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
   Line 14 in XML document from ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml] 
  is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c:
  The matching wildcard is strict, but no declaration can be found for element 'jaxrs:server'.
  </code></pre>
  
  <p>this is my beans.xml:</p>
  
  <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:context="http://www.springframework.org/schema/context"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:jaxrs="http://cxf.apache.org/jaxrs"
      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://cxf.apache.org/jaxrs
           http://cxf.apache.org/schemas/jaxrs.xsd"&gt;
  
      &lt;import resource="classpath:META-INF/cxf/cxf.xml" /&gt;
      &lt;jaxrs:server id="myOrder" address="/"&gt;
              &lt;jaxrs:servicebeans&gt;
                  &lt;ref bean="orderInfoImpl"&gt;
                  &lt;/ref&gt;
              &lt;/jaxrs:servicebeans&gt;
  
          &lt;/jaxrs:server&gt;
          &lt;bean id="orderInfoImpl" class="com.example.rest.OrderInfoImpl"&gt;
          &lt;/bean&gt;
  
      &lt;context:component-scan base-package="simpleclient, com.example.rest" /&gt;
  
      &lt;bean
          class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
          &lt;property name="prefix"&gt;
              &lt;value&gt;/WEB-INF/&lt;/value&gt;
          &lt;/property&gt;
          &lt;property name="suffix"&gt;
              &lt;value&gt;.jsp&lt;/value&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  &lt;/beans&gt;
  </code></pre>