Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1674

Remove or explain why web.xml is needed for RESTful endpoints

    XMLWordPrintable

Details

    • Task
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • REST
    • None

    Description

      While documenting RESTful endpoints I noticed that

      <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
          <servlet-mapping>
              <servlet-name>javax.ws.rs.core.Application</servlet-name>
              <url-pattern>/*</url-pattern>
          </servlet-mapping>
      </web-app>
      

      is needed. Is it not possible to use the annotation index to determine whether a *.war contains RESTful endpoints?

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            tdiesler@redhat.com Thomas Diesler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: