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.
- is related to
-
AS7-4208 Inconsistent behaviour when dealing with resteasy scanning context params
- Resolved