[jbosstools-issues] [JBoss JIRA] (JBIDE-22464) Jax-RS validation and browser doesn't understand mulitple jax-rs applicaitons in same project
Jeff MAURY (JIRA)
issues at jboss.org
Wed Apr 18 12:15:07 EDT 2018
[ https://issues.jboss.org/browse/JBIDE-22464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeff MAURY updated JBIDE-22464:
-------------------------------
Fix Version/s: 4.6.x
(was: 4.5.x)
> Jax-RS validation and browser doesn't understand mulitple jax-rs applicaitons in same project
> ---------------------------------------------------------------------------------------------
>
> Key: JBIDE-22464
> URL: https://issues.jboss.org/browse/JBIDE-22464
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: webservices
> Affects Versions: 4.4.0.Alpha2
> Reporter: Mickael Istria
> Assignee: Xavier Coulon
> Fix For: 4.6.x
>
>
> I'm testing an application with 2 Jax-RS application servlets. I've defined then in the web.xml as follows (I'm not using annotations):
> {code:xml}
> <servlet-mapping>
> <servlet-name>my.app.services.RestServices</servlet-name>
> <url-pattern>/api/*</url-pattern>
> </servlet-mapping>
> <servlet-mapping>
> <servlet-name>my.app.pages.WebPages</servlet-name>
> <url-pattern>/pages/*</url-pattern>
> </servlet-mapping>
> {code}
> This cause a few issues:
> * in web.xml "Multiple JAX-RS Activators are defined for the project." (error by default, I set it to warning)
> * in the RestfulServices class, "The Application Path should be configured with an @ApplicationPath annotation or in the web deployment descriptor." error. It seems like the validator ignores a part of the web.xml
> * In Project Explorer, the "Jax-RS Services" node shows incorrect children: it shows api/ endpoints under pages/api/... whereas pages and api are "siblings".
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jbosstools-issues
mailing list