restgwtresty-gwt

RestyGWT mapping


Im trying to play with RestyGWT. So I try to create simple API and deploy it. My API is available at http://127.0.0.1:8888/api/hellos.

But client tries to connect to http://127.0.0.1:8888/TestApp/api/hellos

Can you please advice what I do wrong (Maybe some suggestions).

Some screenshots:

  1. My client class. client class

  2. My server class. My server class

  3. That's how I call remote method. [That's how I call remote method[3]

  4. My web.xml and *.gwt.xml. My web.xml and *.gwt.xml

  5. Error, wrong address (I don't know why client add TestApp). I don't know why client add TestApp

  6. But API is available (at another path). But API is available


Solution

  • This is Boris Brudnoy aswer:

    Defaults.setServiceRoot(String);

    Doc