users@jersey.java.net

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

From: Sathyakumar <sathyakumar.s_at_gmail.com>
Date: Sat, 31 May 2014 20:17:42 +0530

Resending as I am not sure if I was subscribed to the mailing list. Read
from bottom up. Any help is greatly appreciated.

On Sat, May 31, 2014 at 6:53 PM, Sathyakumar <sathyakumar.s_at_gmail.com>
wrote:

> Correction :
>
> None of my Resources are available under context "Services/webresources
> <http://localhost/Services/webresources/>" available but rather
> available under just "Services" context
>
> On Saturday, May 31, 2014, 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
>>
>