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

Improve exception for empty configuration parameter javax.ws.rs.Application

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Minor
    • None
    • 2.3.7.Final
    • None
    • None

    Description

      RESTEasy can be configured through several configuration options in WAR application deployment file WEB-INF/web.xml. One of them (defined by JAX-RS standard) is javax.ws.rs.Application. When this parameter is empty, exception "java.lang.StringIndexOutOfBoundsException: String index out of range: 0" is raised. Would be nice to throw exception with detailed message, eg.

      throw new ApplicationException("The implementation of javax.ws.rs.core.Application must be specified.", null)
      

      Attachments

        Activity

          People

            patriot1burke@gmail.com Bill Burke (Inactive)
            psakar@redhat.com Petr Sakar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: