users@jersey.java.net

[Jersey] Re: Help with SE deployment on non-default context

From: Paul O'Fallon <paul_at_ofallonfamily.com>
Date: Sat, 31 May 2014 11:27:23 -0400

After your e-mail I tried the same thing in my code and you're right -- it
always answers at the first level (/foo) and not at the defined point
(/foo/bar). In fact it seems to ignore everything after the first path
(/foo/bar/baz still answers at /foo). Unfortunately I don't know how to
fix it, but I can confirm the same results...

- Paul


On Sat, May 31, 2014 at 8:24 AM, Sathyakumar <sathyakumar.s_at_gmail.com>
wrote:

> Am trying hard to do an SE deployment of a Jersey app on Grizzly http
> server.
> My RESTful services are available on a non-default context. Below is the
> code I used
>
> URI uri = UriBuilder.fromUri("http://localhost/Services/webresources/
> ").port(8080).build();
> HttpServer server = GrizzlyHttpServerFactory.createHttpServer(uri, new
> MyConfig());
>
> However non of the resources are accessible under context
> "/Services/webservices" and are instead available under context
> "/Services". I debugged the code a bit and the context path of the request
> is always returned as "/Services" instead of "/Services/webresources". I
> dont know what I'm doing wrong. Any pointer that will help me get going in
> the right direction will help
>