[jboss-jira] [JBoss JIRA] (AS7-3043) RESTEasy: Setting cfg. param resteasy.scan.resources=false causes that servlet-name javax.ws.rs.core.Application is not defined
Pavel Janousek (JIRA)
jira-events at lists.jboss.org
Fri Mar 16 15:29:47 EDT 2012
[ https://issues.jboss.org/browse/AS7-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pavel Janousek updated AS7-3043:
--------------------------------
Fix Version/s: (was: 7.1.0.CR1)
Affects Version/s: 7.1.1.Final
7.1.2.Final
Description:
When I set {code:xml}
<context-param>
<param-name>resteasy.scan.resources</param-name>
<param-value>false</param-value>
</context-param>
{code} in web.xml, I can't use{code:xml}
<servlet-mapping>
<servlet-name>javax.ws.rs.core.Application</servlet-name>
<url-pattern>/myjaxrs/*</url-pattern>
</servlet-mapping>
{code} because _javax.ws.rs.core.Application_ is not defined yet.
I got exception like this:{code}java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name javax.ws.rs.core.Application{code}
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.
was:
When I set {code:xml}
<context-param>
<param-name>resteasy.scan.resources</param-name>
<param-value>false</param-value>
</context-param>
{code} in web.xml, I can't use{code:xml}
<servlet-mapping>
<servlet-name>javax.ws.rs.core.Application</servlet-name>
<url-pattern>/myjaxrs/*</url-pattern>
</servlet-mapping>
{code} because _javax.ws.rs.core.Application_ is not defined yet.
I got exception like this:{code}ava.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name javax.ws.rs.core.Application{code}
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.
> RESTEasy: Setting cfg. param resteasy.scan.resources=false causes that servlet-name javax.ws.rs.core.Application is not defined
> -------------------------------------------------------------------------------------------------------------------------------
>
> Key: AS7-3043
> URL: https://issues.jboss.org/browse/AS7-3043
> Project: Application Server 7
> Issue Type: Bug
> Components: REST
> Affects Versions: 7.1.0.Beta1b, 7.1.1.Final, 7.1.2.Final
> Reporter: Pavel Janousek
> Assignee: Weinan Li
> Priority: Blocker
>
> When I set {code:xml}
> <context-param>
> <param-name>resteasy.scan.resources</param-name>
> <param-value>false</param-value>
> </context-param>
> {code} in web.xml, I can't use{code:xml}
> <servlet-mapping>
> <servlet-name>javax.ws.rs.core.Application</servlet-name>
> <url-pattern>/myjaxrs/*</url-pattern>
> </servlet-mapping>
> {code} because _javax.ws.rs.core.Application_ is not defined yet.
> I got exception like this:{code}java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name javax.ws.rs.core.Application{code}
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list