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

    Cannot access REST-resources (Seam 2.1.0.BETA1)

    thomast

      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?


        • 1. Re: Cannot access REST-resources (Seam 2.1.0.BETA1)
          thomast

          I'm sorry for the former post. There was not really a problem. I was terribly tired last night for doing all the things correctly. I could hit my head on the table ;-), because I really forgot to put the 'jboss-seam-resteasy.jar' from the seam dist to my project lib-folder. I felt a bit sheepish about it. :-)