[forge-issues] [JBoss JIRA] (FORGE-1166) Servlet javax.ws.rs.core.Application not defined in web.xml
George Gastaldi (JIRA)
jira-events at lists.jboss.org
Thu Sep 5 10:06:03 EDT 2013
[ https://issues.jboss.org/browse/FORGE-1166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Gastaldi closed FORGE-1166.
----------------------------------
Fix Version/s: 1.4.1.Final
Resolution: Done
fixed
> Servlet javax.ws.rs.core.Application not defined in web.xml
> -----------------------------------------------------------
>
> Key: FORGE-1166
> URL: https://issues.jboss.org/browse/FORGE-1166
> Project: Forge
> Issue Type: Bug
> Affects Versions: 1.4.0.Final
> Reporter: Antonio Goncalves
> Assignee: George Gastaldi
> Fix For: 1.4.1.Final
>
>
> Hi,
> When seting up REST, Forge creates the following servlet mapping :
> {code}
> <servlet-mapping>
> <servlet-name>javax.ws.rs.core.Application<servlet-name>
> <url-pattern>/rest/*</url-pattern>
> </servlet-mapping>
> {code}
> But in GlassFish 3.x and 4.0 this doesn't work because the servlet is not declared. You need to add the following to make it work :
> {code}
> <servlet>
> <servlet-name>javax.ws.rs.core.Application</servlet-name>
> <load-on-startup>1</load-on-startup>
> </servlet>
> {code}
> I read Lincoln's comment on that (sorry, can't find where, it was in a JIRA comment) that this was in the spec and that the app server should define it. I couln't find this requirement in the JAX-RS spec but maybe it's written somewhere else (Servlet ?). But I think it would be good to add it anyway, so it would work will all app servers.
> PS : same behaviour in Forge 1.3.3-Final
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the forge-issues
mailing list