[jbosstools-issues] [JBoss JIRA] (JBIDE-22464) Jax-RS validation and browser doesn't understand mulitple jax-rs applicaitons in same project
Mickael Istria (JIRA)
issues at jboss.org
Tue May 31 02:27:00 EDT 2016
Mickael Istria created JBIDE-22464:
--------------------------------------
Summary: 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
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
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list