yep (not sure it would work with previous snapshot but with next it should)
*Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/3/6 James Green <james.mk.gr...@gmail.com> > Er, so: > > <servlet> > <description>REST Application for public.</description> > <servlet-name>Public</servlet-name> > <servlet-class>com.foo.PublicJAXRSApplication</servlet-class> > </servlet> > <servlet-mapping> > <servlet-name>public</servlet-name> > <url-pattern>/api</url-pattern> > </servlet-mapping> > > <servlet> > <description>REST Application for private.</description> > <servlet-name>Private</servlet-name> > <servlet-class>com.foo.PrivateJAXRSApplication</servlet-class> > </servlet> > <servlet-mapping> > <servlet-name>private</servlet-name> > <url-pattern>/private</url-pattern> > </servlet-mapping> > > Where com.foo.PublicJAXRSApplication and com.foo.PrivateJAXRSApplication > are subclasses of javax.ws.rs.core.Application, right? > > > > On 6 March 2013 11:35, Romain Manni-Bucau <rmannibu...@gmail.com> wrote: > > > The applications only with their own mapping > > Le 6 mars 2013 12:11, "James Green" <james.mk.gr...@gmail.com> a écrit : > > > > > You mention declaring "it" in web.xml: are you referring to each > resource > > > class or each application class? > > > > > > Does it also need the URL endpoint declared for each? > > > > > > > > > > > > On 6 March 2013 08:25, Romain Manni-Bucau <rmannibu...@gmail.com> > wrote: > > > > > > > Hi, > > > > > > > > next snapshot should support it in a better way i think > > > > > > > > *Romain Manni-Bucau* > > > > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* > > > > *Blog: **http://rmannibucau.wordpress.com/*< > > > > http://rmannibucau.wordpress.com/> > > > > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > > > > *Github: https://github.com/rmannibucau* > > > > > > > > > > > > > > > > 2013/3/5 Romain Manni-Bucau <rmannibu...@gmail.com> > > > > > > > > > Maybe try -Dopenejb.jaxrs.application=false > > > > > Le 5 mars 2013 21:57, "John D. Ament" <john.d.am...@gmail.com> a > > > écrit : > > > > > > > > > > Most other app servers (GF, WebSphere) support it. There's > actually > > a > > > > bug > > > > >> in RESTEasy right now blocking it. > > > > >> > > > > >> > > > > >> On Tue, Mar 5, 2013 at 3:42 PM, Romain Manni-Bucau < > > > > rmannibu...@gmail.com > > > > >> >wrote: > > > > >> > > > > >> > Nothing allows it too ;). Defining it through web.xml would > work. > > > > >> > > > > > >> > Through auto discovering...that's not in the specs at all > > > > >> > Le 5 mars 2013 21:25, "James Green" <james.mk.gr...@gmail.com> > a > > > > écrit > > > > >> : > > > > >> > > > > > >> > > I got it to break. > > > > >> > > > > > > >> > > https://github.com/jmkgreen/jaxrs-twoapp deploy that and > watch > > > the > > > > >> root > > > > >> > > paths disappear. It's just because I added a second JAX-RS > > > > >> Application. I > > > > >> > > don't see anything in the spec to prevent that. > > > > >> > > > > > > >> > > James > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > On 4 March 2013 17:14, Romain Manni-Bucau < > > rmannibu...@gmail.com> > > > > >> wrote: > > > > >> > > > > > > >> > > > @James: please reproduce it since i tested it and it worked > > for > > > me > > > > >> > > > > > > > >> > > > *Romain Manni-Bucau* > > > > >> > > > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* > > > > >> > > > *Blog: **http://rmannibucau.wordpress.com/*< > > > > >> > > > http://rmannibucau.wordpress.com/> > > > > >> > > > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > > > > >> > > > *Github: https://github.com/rmannibucau* > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > 2013/3/4 John D. Ament <john.d.am...@gmail.com> > > > > >> > > > > > > > >> > > > > Can you override this using the servlet mapping? > > > > >> > > > > > > > > >> > > > > > > > > >> > > > > On Mon, Mar 4, 2013 at 12:11 PM, James Green < > > > > >> > james.mk.gr...@gmail.com > > > > >> > > > > >wrote: > > > > >> > > > > > > > > >> > > > > > Just wanted to confirm that for us with a week-old 1.6.0 > > > > >> snapshot, > > > > >> > > > JAX-RS > > > > >> > > > > > ApplicationPath has no effect. > > > > >> > > > > > > > > > >> > > > > > The log shows JAX-RS endpoints created minus this path, > > and > > > > >> > accessing > > > > >> > > > > this > > > > >> > > > > > with the path ends up with a 404, but accessing them > > without > > > > the > > > > >> > path > > > > >> > > > > > brings up the code. > > > > >> > > > > > > > > > >> > > > > > What should be contextPath/api/myresource is now > > > > >> > > > contextPath/myresource. > > > > >> > > > > > Which is going to make routing requests from the outside > > > world > > > > >> > > > > > interesting... > > > > >> > > > > > > > > > >> > > > > > James > > > > >> > > > > > > > > > >> > > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > > > > > > > > > > > >