0 Replies Latest reply on Jun 1, 2010 4:42 AM by Aliaksandr Mikhailau

    Resteasy PathSegment

    Aliaksandr Mikhailau Newbie
      Hi! There's a problem with PathSegment in RESTEasy.
      I can't map this URI:
      http://localhost:8080/IBAEmulators/seam/resource/rest/obmen/NACHXML/?type=P.

      This my code:

      @Name("rvcOnlineService")
      @Path("/obmen")
      public class RVCOnlineServiceImpl {
          @GET
          @Path("/{NACHXML:.+}")
          @Produces("text/plain")
          public String getDebts(@PathParam("NACHXML") String reportName,
                                 @QueryParam("type") String typeQueryParam) {
              return "Hello from " + reportName + " with query params [" + typeQueryParam + "]";
          }
      }

      It always throws an exception:
      org.jboss.resteasy.spi.BadRequestException: Number of matched segments greater than actual.

      The problem in last '/'. Is there any way to map my URL?