1 Reply Latest reply on Aug 29, 2008 10:20 AM by Thomas Taubenschmidt

    Cannot access REST-resources (Seam 2.1.0.BETA1)

    Thomas Taubenschmidt Newbie

      Hi,


      I have trouble to get the Seam-Resteasy-Feature running. I just follow the reference-guide - but without success.


      The following example works in a different environment and looks correct for me.


      @Path("/customer/")
      public class MyCustomerResource {
      
      
          @GET
          @ProduceMime("text/plain")
          public String get( ) {
              return "Hallo Welt";
          }
        
      }



      I put this resource in my seam-gen-generated-project and all the needed jar's on the deploy-list.
      The server (4.3.2.GA) don't throw any message about a resource while booting up the ear-package.
      I try to get the resource at http://myhost:8080/ctxPath/seam/resource/rest/customer and the response is a 404 error.
      All the default configuration i have not touch, as is recommend.


      Please give me hint - what could be the problem?