Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-941

Root resource not found

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 3.0.4.Final
    • 3.0.2.Final
    • jaxrs
    • None

      I've got two root resources like this:

      {{
      @javax.ws.rs.Path("endpoint/

      {parameter}")
      public class EndpointA {

      @javax.ws.rs.GET
      public String f() { return getClass().getName(); }
      }
      }}

      {{
      @javax.ws.rs.Path("endpoint/{parameter}

      /B")
      public class EndpointB {

      @javax.ws.rs.GET
      public String f()

      { return getClass().getName(); }

      }
      }}

      When going to the URL /endpoints/FOO/B I get an exception
      at org.jboss.resteasy.core.registry.SegmentNode.match(SegmentNode.java:111) [resteasy-jaxrs-3.0.2.Final.jar:]

      This is based on code that works as expected in JAX-RS 1 jersey and I think it should work according to the matching algorithm.

      If I don't use a parameter (endpoint/ and endpoint/B) in the path, then it works as expected.

              patriot1burke@gmail.com Bill Burke (Inactive)
              spamdaemon_jira Anonymous User (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: