3 Replies Latest reply on Apr 1, 2009 3:45 PM by Enrico Gulfi

    Can't get RESTeasy to work

    Enrico Gulfi Newbie

      Hello,


      using Eclipse 3.4, JBossTools 3.0.0.CR2 I have created a basic SEAM 2.1 project (called seam2.1). From the documentation I have cut and pasted the following class definition:


      package org.domain.seam21.session;
      
      import javax.ws.rs.GET;
      import javax.ws.rs.Path;
      import javax.ws.rs.PathParam;
      import javax.ws.rs.ProduceMime;
      
      @Path("/customer")
      public class MyCustomerResource {
      
          @GET
          @Path("/{customerId}")
          @ProduceMime("text/plain")
          public String getCustomer(@PathParam("customerId") int id) {
               return "hello" + id;
          }
      
      }
      



      I have built the project and installed the ear file on a JBoss 4.2.3 AS.


      My problem is that I can't get the application to answer any RESTeasy request. In particular




      Any help is much appreciated!


      Enrico