Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-12633

Support for JAX-RS Application subclassing with configuration in web.xml

    XMLWordPrintable

Details

    • Support has been added for JAX-RS Application subclassing by allowing a user to place a corresponding configuration in the web.xml file of the application.
    • Documented as Feature Request

    Description

      As described in https://docs.jboss.org/author/display/AS7/JAX-RS+Reference+Guide, the plugin should support the following use case:

      Subclassing javax.ws.rs.core.Application and using web.xml
      If you do not wish to use @ApplicationPath but still need to subclass Application you can set up the JAX-RS mapping in web.xml:

      public class MyApplication extends Application {
      }
      
      <servlet-mapping>
         <servlet-name>com.acme.MyApplication</servlet-name>
         <url-pattern>/hello/*</url-pattern>
      </servlet-mapping>
      

      Attachments

        Issue Links

          Activity

            People

              xcoulon@redhat.com Xavier Coulon
              xcoulon@redhat.com Xavier Coulon
              Isaac Rooskov Isaac Rooskov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: