title: cxf : can't find request url for Observer
body: <p>I am using spring with Apache CXF to create some rest resources. Looks like my jaxrs beans are not getting intialized. </p>
  
  <blockquote>
    <p>WARNING: Can't find the the request for
    <a href="http://localhost:8080/cxf-sandbox/home-screen/v1/12345/predefined-templates/universal_template" rel="noreferrer">http://localhost:8080/cxf-sandbox/home-screen/v1/12345/predefined-templates/universal_template</a>'s
    Observer</p>
  </blockquote>
  
  <p>What am I missing here? </p>
  
  <p>I've configured for all requests to be routed to my CXF servlet</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee      http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
  version="3.0"&gt;
  
  &lt;display-name&gt;cxf-sandbox&lt;/display-name&gt;
  
  &lt;context-param&gt;
      &lt;param-name&gt;log4j.refresh.interval&lt;/param-name&gt;
      &lt;param-value&gt;120&lt;/param-value&gt;
  &lt;/context-param&gt;
  &lt;servlet&gt;
      &lt;servlet-name&gt;CXFServlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.apache.cxf.transport.servlet.CXFServlet&lt;/servlet-class&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;CXFServlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  
  
  &lt;context-param&gt;
      &lt;description&gt;locations of the Spring configuration files&lt;/description&gt;
      &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
      &lt;param-value&gt;
           classpath:META-INF/cxf/cxf.xml, classpath:META-INF/cxf/cxf-servlet.xml
          &lt;/param-value&gt;
  &lt;/context-param&gt;
  
  &lt;listener&gt;
      &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  </code></pre>
  
  <p>I've configured a jaxrs server bean and my rest resource bean
      </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:context="http://www.springframework.org/schema/context" xmlns:p="http://www.springframework.org/schema/p"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc"
  xmlns:beans="http://www.springframework.org/schema/beans" xmlns:aop="http://www.springframework.org/schema/aop"
  xmlns:jaxrs="http://cxf.apache.org/jaxrs"
  xsi:schemaLocation="http://www.springframework.org/schema/beans    
  http://www.springframework.org/schema/beans/spring-beans-4.0.xsd    
  http://www.springframework.org/schema/context    
  http://www.springframework.org/schema/context/spring-context-4.0.xsd
  http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
  http://www.springframework.org/schema/aop
  http://www.springframework.org/schema/aop/spring-aop.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;jaxrs:server id="myJaxServer" address="/home-screen"&gt;
      &lt;jaxrs:serviceBeans&gt;
          &lt;ref bean="PredefinedHomeScreenResourceImpl" /&gt;
      &lt;/jaxrs:serviceBeans&gt;
      &lt;jaxrs:providers&gt;
          &lt;bean id="jaxbProvider" class="org.apache.cxf.jaxrs.provider.JAXBElementProvider" /&gt;
      &lt;/jaxrs:providers&gt;
  &lt;/jaxrs:server&gt;
  &lt;bean id="PredefinedHomeScreenResourceImpl" class="PredefinedHomeScreenResourceImpl" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>This is my rest resource</p>
  
  <pre><code>@Path("/v1/{billingId}/predefined-templates")
  @Produces(MediaType.APPLICATION_JSON)
  public class PredefinedHomeScreenResourceImpl {
  
  private final static Logger LOGGER = LoggerFactory.getLogger(PredefinedHomeScreenResourceImpl.class);
  
  @GET
  @Path("/templateName")
  public Response getPredefinedTemplate(String billingId, String templateName) {
      LOGGER.debug("IN HERE");        
      return Response.ok(new Employee("Abhijith")).build();
  }
  
  }
  </code></pre>
  
  <p>Model</p>
  
  <pre><code>@XmlRootElement(name="employee")
  public class Employee {
  
  @XmlElement(name = "name")
  private String name;
  
  public Employee(String name) {
      super();
      this.name = name;
  }
  
  
  }
  </code></pre>