In a servlet container you would get an error, when you deploy two different servlets with the same mapping (e.g. /foo/*).

I was wondering if the JAX-RS container (the used implementation) should not also give a warning, if ONE application has multiple "Application classes" with the same mapping (aka Application path).

I was wondering if I have the following:

@ApplicationPath("/")
public class Foo extends Application {
}

AND

@ApplicationPath("/")
public class Bar extends Application {
}

If the used JAX-RS container (implementation) should tell me, at deploy time: Dude, you are having to endpoints with the same mapping.

Other frameworks do similar (e.g. CDI does it when two classes use the same component name etc)

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