Hello Gabriel,

I think this is due to the constraint called "Same origin policy" (cf
http://en.wikipedia.org/wiki/Same_origin_policy).
Your web pages are served on localhost with port 8888, which is considered
as distinct of your Rest backend listening on port 8112.
That does not means that you can't have separate projects for example, one
for your Client gwt application, one for your Rest backend, and one for the
common beans, this what I usually do at work. It works perfectly in
Eclipse, but in this case, you have to configure properly the launcher for
your Application.

I can you give you more details tomorrow.

Bets regards,
Thierry Boileau


Hello again,
> I've attached a compressed file with two example projects based on the
> example application from restlet:
>
> a) A netbeans project: RestTestServer in which a server and common classes
> are defined.
> This project uses the restletJSE 2.1RC3
>
> b) An eclipse project: testGWTRestlet in which a very basic gwt eclipse
> project is defined.
> This project uses the restletGWT 2.1RC3 and the GWT 2.4
>
> If I start the testserver and use a web browser to retrieve the
> http://localhost:8112/contacts/123 resource the browser retrieves it
> correctly.
>
> However If I start the gwt server, point the web client the gwt server
> address and then click the button (where the retrieve code is linked in
> this example) the result is null (as you can see on the button text).
>
> What is the problem? Why can't I retrieve the resource on the gwt client
> using the example code? what am I missing here?
> I had try to reduce the example to the minimal.
> Thank you
> Gabriel
>
> ------------------------------------------------------
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2926300

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2928071

Reply via email to