title: Apache camel cxfrs—Can't find the request for <URL> Observer
body: <p>I tried to develop a rest service and expose the same via Apache Camel's CXFRS. I followed all the steps given in <a href="http://camel.apache.org/cxfrs.html" rel="nofollow noreferrer">http://camel.apache.org/cxfrs.html</a> and also referred to many samples given. I already referred to the question <a href="https://stackoverflow.com/questions/8532309/cant-find-the-the-request-for-url-observer">Can&#39;t find the the request for url Observer</a>, but in my case it is a simple rest request. Below are the Service class, Route class, and cxf context used:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"       xmlns:camel="http://camel.apache.org/schema/spring"
  xmlns:cxf="http://camel.apache.org/schema/cxf"  xmlns:context="http://www.springframework.org/schema/context"
  xmlns:jaxrs="http://cxf.apache.org/jaxrs"
  
     xsi:schemaLocation="http://www.springframework.org/schema/beans
     http://www.springframework.org/schema/beans/spring-beans.xsd
     http://camel.apache.org/schema/spring
     http://camel.apache.org/schema/spring/camel-spring.xsd
     http://camel.apache.org/schema/cxf
     http://camel.apache.org/schema/cxf/camel-cxf.xsd
     http://www.springframework.org/schema/context
     http://www.springframework.org/schema/context/spring-context.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;import resource="classpath:META-INF/cxf/cxf-servlet.xml" /&gt;
  &lt;context:annotation-config /&gt;
  
  &lt;!-- enable Spring @Component scan --&gt;
  &lt;context:component-scan base-package="org.camelsample.rest" /&gt;
  
  &lt;cxf:rsServer id="rsServer" address="/rest"
      serviceClass="org.camelsample.rest.service.SampleRestService"
      loggingFeatureEnabled="true" loggingSizeLimit="20"&gt;
      &lt;cxf:providers&gt;
          &lt;bean class="org.codehaus.jackson.jaxrs.JacksonJsonProvider" /&gt;
      &lt;/cxf:providers&gt;
  &lt;/cxf:rsServer&gt;
  
  &lt;camel:camelContext id="samplerestservice"
      xmlns="http://camel.apache.org/schema/spring"&gt;
      &lt;contextScan /&gt;
      &lt;jmxAgent id="agent" createConnector="true" /&gt;
  &lt;/camel:camelContext&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>The Service Class:</p>
  
  <pre><code>package org.camelsample.rest.service;
  
  import javax.ws.rs.GET;
  import javax.ws.rs.Path;
  
  public class SampleRestService {
  
      @GET
      @Path("/")
      public String sampleService() {
        return null;
      }
  }
  </code></pre>
  
  <p>The Route Class:</p>
  
  <pre><code>package org.camelsample.rest.route;
  
  import org.apache.camel.spring.SpringRouteBuilder;
  
  public class SampleRestRoute extends SpringRouteBuilder {
  
      @Override
      public void configure() throws Exception {
          // TODO Auto-generated method stub
          from("cxfrs:bean:rsServer").log("Into Sample   Route").setBody(constant("Success"));
      }
  }
  </code></pre>
  
  <p>But when I try to hit and test using <a href="http://localhost:8080/rest" rel="nofollow noreferrer">http://localhost:8080/rest</a>, I always get the following error message:</p>
  
  <pre><code>2015-05-29 13:38:37.920  WARN 6744 --- [nio-8080-exec-2] o.a.c.t.servlet.ServletController        : Can't find the the request for http://localhost:8080/favicon.ico's Observer 
  2015-05-29 13:38:40.295  WARN 6744 --- [nio-8080-exec-3] o.a.c.t.servlet.ServletController        : Can't find the the request for http://localhost:8080/rest's Observer 
  </code></pre>
  
  <p>Am using Spring boot to test the rest sample.</p>