[
https://issues.jboss.org/browse/JBIDE-22464?page=com.atlassian.jira.plugi...
]
Mickael Istria commented on JBIDE-22464:
----------------------------------------
I'll try to share an example.
Also, see this SO discussion you contributed to:
http://stackoverflow.com/questions/22929499/multiple-jax-rs-applications-... .
I just happened to try this in a WildFly 9, and it actually works: I have multiple jax-rs
root URL, one for each application defined.
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.4.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
(v6.4.11#64026)