users@jersey.java.net

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

From: Sathyakumar <sathyakumar.s_at_gmail.com>
Date: Tue, 3 Jun 2014 17:38:08 +0530

Is this a bug that needs to be filed ?


On Sun, Jun 1, 2014 at 5:10 PM, Paul O'Fallon <paul_at_ofallonfamily.com>
wrote:

> Same -- I tried it with both Jersey 2.7 and 2.9.
>
>
> On Sun, Jun 1, 2014 at 4:49 AM, Sathyakumar <sathyakumar.s_at_gmail.com>
> wrote:
>
>> Hey,
>>
>> I suppose it is grizzly-http-server 2.3.8. I use maven and using the
>> jersey bom v2.9. The dependency graph in my IDE shows 2.3.8 as the version.
>>
>> Regards
>> Sathya
>>
>>
>>
>> On Sun, Jun 1, 2014 at 9:50 AM, Oleksiy Stashok <
>> oleksiy.stashok_at_oracle.com> wrote:
>>
>>> Hi guys,
>>>
>>> which Grizzly version are you using?
>>>
>>> Thanks.
>>>
>>> WBR,
>>> Alexey.
>>>
>>> On 31.05.14 08:27, Paul O'Fallon wrote:
>>>
>>> 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
>>>>
>>>
>>>
>>>
>>
>