I
followed:http://cxf.apache.org/docs/jax-rs.html#JAX-RS-ConfiguringJAXRSservicesincontainerwithSpringconfigurationfile
--------------------------------------------------------------------------------
 <jaxrs:server id="customerService" address="/s" >
    <jaxrs:serviceBeans>
      <ref bean="customerBean" />
    </jaxrs:serviceBeans>
  </jaxrs:server>

  <bean id="customerBean" class="demo.jaxrs.server.CustomerService" />

  @Path("/customerservice/")
  public class CustomerService {

    @GET
    @Path("/customers/{id}/")
    public Customer getCustomer(@PathParam("id") String id) {
        System.out.println("----invoking getCustomer, Customer id is: " +
id);
        long idNumber = Long.parseLong(id);
        Customer c = customers.get(idNumber);
        return c;
    }
-----------------------------------------------------------------------------

tomcat start info:
-----------------------------------------------------------------------------
2010-5-30 22:08:42 org.apache.cxf.endpoint.ServerImpl initDestination
Setting the server's publish address to be /s
-----------------------------------------------------------------------------
But when I execute the url
"http://localhost:8088/rsproject/s/customerservice/customers/123/"; in
browser,tomcat print a warn message:
Can't find the request for
http://localhost:8088/rsproject/s/customerservice/customers/123/'s Observer 

any suggestions?
-- 
View this message in context: 
http://old.nabble.com/Configuring-JAX-RS-services-in-container-with-Spring-configuration-file...-tp28722375p28722375.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to