Details

    • Type: Sub-task Sub-task
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: 2.0-m13, 2.0
    • Component/s: None
    • Labels:
      None

      Description

      Suppose having

      @ApplicationPath("ApplicationPath%21")
      public class TSAppConfig extends Application {

      public java.util.Set<java.lang.Class<?>> getClasses()

      { Set<Class<?>> resources = new HashSet<Class<?>>(); resources.add(Resource.class); return resources; }


      }

      and Resource

      @Path("/Resource")
      public class Resource {
      @GET
      public Response returnOk(@Context UriInfo uriInfo)

      { return Response.ok(uriInfo.getAbsolutePath().toString()).build(); }

      }

      On tomcat, for get /jaxrs_ee_applicationpath_web/ApplicationPath!/Resource/ HTTP/1.1, one receive 404, but get jaxrs_ee_applicationpath_web/Resource/ works, and http://localhost:8080/jaxrs_ee_applicationpath_web/Resource/ is the response.

        Activity

        Hide
        Pavel Bucek added a comment -

        you are evidently NOT using servlet 3.x features for deploying your application.

        see @ApplicationPath javadoc:

        • <p>When published in a Servlet container, the value of the application path
        • may be overridden using a servlet-mapping element in the web.xml.</p>

        closing as invalid.

        Show
        Pavel Bucek added a comment - you are evidently NOT using servlet 3.x features for deploying your application. see @ApplicationPath javadoc: <p>When published in a Servlet container, the value of the application path may be overridden using a servlet-mapping element in the web.xml.</p> closing as invalid.

          People

          • Assignee:
            Unassigned
            Reporter:
            jan.supol
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: