2 Replies Latest reply on Mar 13, 2009 4:15 PM by Pragun Mehta

    Seam-RESTEasy sample

    Chua Khoon Yong Novice

      hi any1,


      Would appreciate advice on how to get a simple RESTEasy to work for beginners.  I tried to follow the instructions on Chapter 24.4.1 of Seam 2.1.1 reference manual to setup a simple RESTEasy sample.


      I use the seam booking example to add the RESTEasy sample and encountered this error when i use the GET request via:



      http://localhost:8080/seam/resource/rest/customer/123

      The error i got is:



      The requested resource (/seam/resource/rest/customer/123) is not available.


      @Path("/customer")
      public class MyCustomerResource {
      @GET
      @Path("/{customerId}")
      @ProduceMime("text/plain")
      public String getCustomer(@PathParam("customerId") int id) {
      
      return "hello";
      }
      }




      Thank you.