users@jersey.java.net

[Jersey] Re: Define resources base URI in dynamic WADL

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Thu, 15 Sep 2011 10:52:33 +0200

Never mind, I filed the issue already: http://java.net/jira/browse/JERSEY-773

Marek

On 09/14/2011 06:14 PM, Marek Potociar wrote:
> Hi,
> I have verified that the solution described by Pavel on the forum is not working anymore. Please file a new issue. We
> need to analyze it more and fix it.
>
> Thank you,
> Marek
>
> On 09/13/2011 10:35 PM, tyju tiui wrote:
>> Hi,
>>
>> I am trying to expose my web service to a public facing web server. I am using Apache as the web server with mod_proxy setup to route requests REST requests back to Jetty / Jersey.
>> Everything is working fine actually (REST endpoints all work correctly) but the resources base URI in my generated WADL is incorrect for the public-facing server.
>>
>> The generated URI is: http://localhost:8080/testRestAPI/rest/
>>
>> What I want is: http://mydomain.com/rest/
>>
>> I followed the example at the following URL but it didn't make any difference for me: http://jersey.576304.n2.nabble.com/Changing-baseURI-when-generating-WADL-td6169703.html
>>
>> I've also asked this question on stackoverflow if anyone wants to earn a few points: http://stackoverflow.com/questions/7404863/define-wadl-resources-base-in-jersey
>>
>> I'm using Jersey 1.9 with Jetty 7.5.1 on OpenJDK 1.6 / RHEL 5.4 x86_64.
>>
>>
>> Any help / advice would be appreciated!
>>
>> Thanks,
>>
>> Ty