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

RESTEasy: Setting cfg. param resteasy.scan.resources=false causes that servlet-name javax.ws.rs.core.Application is not defined

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 7.1.0.CR1
    • 7.1.0.Beta1b, 7.1.1.Final, 7.1.2.Final (EAP)
    • REST
    • None

    Description

      When I set

      <context-param>
              <param-name>resteasy.scan.resources</param-name>
              <param-value>false</param-value>
      </context-param>
      

      in web.xml, I can't use

      <servlet-mapping>
              <servlet-name>javax.ws.rs.core.Application</servlet-name>
              <url-pattern>/myjaxrs/*</url-pattern>
      </servlet-mapping>
      

      because javax.ws.rs.core.Application is not defined yet.

      I got exception like this:

      java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name javax.ws.rs.core.Application

      I'm not sure, but I think that declaration of servlet-name javax.ws.rs.core.Application should be independent to setting this parameter to any value. It should only impact scanning user-defined (= included in WAR) resources.

      Attachments

        Issue Links

          Activity

            People

              weli@redhat.com Weinan Li
              pjanouse@redhat.com Pavel Janousek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: