title: Invalid content was found starting with element 'jaxrs:servicebeans'"
body: <p>I am trying to run a JAX-RS service. While trying to start Tomcat server, I am getting an error "<strong>Invalid content was found starting with element 'jaxrs:servicebeans'</strong>"</p>
  
  <p>Detailed error is - </p>
  
  <p>*
  <em>Invalid content was found starting with element 'jaxrs:servicebeans'. One of '{"<a href="http://cxf.apache.org/jaxrs" rel="nofollow">http://cxf.apache.org/jaxrs</a>":executor, "<a href="http://cxf.apache.org/jaxrs" rel="nofollow">http://cxf.apache.org/jaxrs</a>":features, "<a href="http://cxf.apache.org/jaxrs" rel="nofollow">http://cxf.apache.org/jaxrs</a>":binding, "<a href="http://cxf.apache.org/jaxrs" rel="nofollow">http://cxf.apache.org/jaxrs</a>":dataBinding, "<a href="http://cxf.apache.org/jaxrs" rel="nofollow">http://cxf.apache.org/jaxrs</a>":inInterceptors, "<a href="http://cxf.apache.org/jaxrs" rel="nofollow">http://cxf.apache.org/jaxrs</a>":inFaultInterceptors, "<a href="http://cxf.apache.org/jaxrs" rel="nofollow">http://cxf.apache.org/jaxrs</a>":invoker, "<a href="http://cxf.apache.org/jaxrs" rel="nofollow">http://cxf.apache.org/jaxrs</a>":serviceFactories, "<a href="http://cxf.apache.org/jaxrs" rel="nofollow">http://cxf.apache.org/jaxrs</a>":outInterceptors, "<a href="http://cxf.apache.org/jaxrs" rel="nofollow">http://cxf.apache.org/jaxrs</a>":outFaultInterceptors, "<a href="http://cxf.apache.org/jaxrs" rel="nofollow">http://cxf.apache.org/jaxrs</a>":properties, <strong>"<a href="http://cxf.apache.org/jaxrs" rel="nofollow">http://cxf.apache.org/jaxrs</a>":serviceBeans</strong>, "<a href="http://cxf.apache.org/jaxrs" rel="nofollow">http://cxf.apache.org/jaxrs</a>":modelBeans, "<a href="http://cxf.apache.org/jaxrs" rel="nofollow">http://cxf.apache.org/jaxrs</a>":model, "<a href="http://cxf.apache.org/jaxrs" rel="nofollow">http://cxf.apache.org/jaxrs</a>":providers, "<a href="http://cxf.apache.org/jaxrs" rel="nofollow">http://cxf.apache.org/jaxrs</a>":extensionMappings, "<a href="http://cxf.apache.org/jaxrs" rel="nofollow">http://cxf.apache.org/jaxrs</a>":languageMappings, "<a href="http://cxf.apache.org/jaxrs" rel="nofollow">http://cxf.apache.org/jaxrs</a>":schemaLocations, "<a href="http://cxf.apache.org/jaxrs" rel="nofollow">http://cxf.apache.org/jaxrs</a>":resourceComparator}' is expected.</em>
  *</p>
  
  <p>My spring configuration file is -</p>
  
  <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:addressing="http://cxf.apache.org/ws/addressing"
      xmlns:aop="http://www.springframework.org/schema/aop" xmlns:beans="http://cxf.apache.org/configuration/beans"
      xmlns:configuration="http://cxf.apache.org/transports/http/configuration"
      xmlns:context="http://www.springframework.org/schema/context"
      xmlns:cxf="http://cxf.apache.org/core" xmlns:jaxrs="http://cxf.apache.org/jaxrs"
      xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:jpa="http://www.springframework.org/schema/data/jpa"
      xmlns:p="http://www.springframework.org/schema/p" xmlns:parameterized-types="http://cxf.apache.org/configuration/parameterized-types"
      xmlns:soap="http://cxf.apache.org/bindings/soap" xmlns:tx="http://www.springframework.org/schema/tx"
      xmlns:util="http://www.springframework.org/schema/util" xmlns:jee="http://www.springframework.org/schema/jee"
      xmlns:webservice="http://sf.icptp.springextensions/schema/webservice" 
      xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
          http://cxf.apache.org/ws/addressing http://cxf.apache.org/schemas/ws/addressing.xsd
          http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd
          http://cxf.apache.org/configuration/beans http://cxf.apache.org/schemas/configuration/cxf-beans.xsd
          http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
          http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
          http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
          http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
          http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
          http://cxf.apache.org/configuration/parameterized-types http://cxf.apache.org/schemas/configuration/parameterized-types.xsd
          http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd
          http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
          http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd 
          http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.0.xsd
          http://sf.icptp.springextensions/schema/webservice http://sf.icptp.springextensions/schema/webservice/webservice.xsd" &gt;
  
      &lt;import resource="classpath:META-INF/cxf/cxf.xml" /&gt;
      &lt;import resource="classpath:META-INF/cxf/cxf-extension-jaxrs-binding.xml" /&gt;
      &lt;import resource="classpath:META-INF/cxf/cxf-servlet.xml" /&gt;
  
      &lt;bean id="order" class="com.example.rest.OrderInfoImpl" /&gt;
  
      &lt;jaxrs:server address="/" id="connectionService"&gt;
          &lt;jaxrs:servicebeans&gt;
              &lt;ref bean="order"&gt;&lt;/ref&gt;
          &lt;/jaxrs:servicebeans&gt;
          &lt;jaxrs:extensionmappings&gt;
              &lt;entry key="xml" value="application/xml" &gt;&lt;/entry&gt;
          &lt;/jaxrs:extensionmappings&gt;
      &lt;/jaxrs:server&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>I am unable to figure out the reason, why it does not recognize the "<strong>jaxrs:servicebeans</strong>" tag inside the <strong>jaxrs:server</strong> tag. I am not sure if it is a problem with the version of <strong>cxf-rt-frontend-jaxrs</strong>; although I did try with version 2.5.2 and 2.7.3.</p>