Dec 07

There is a problem with the embedded Tomcat server used by GWT in Hosted Mode resulting in the status code in the response always being 200, and the location reference being null.

To workaround this bug you need to add a dummy entity to the response on the server side. This ensures the correct status code and location are received by the client.

On the server side:

getResponse().setStatus(Status.SUCCESS_CREATED, "Widget added");

// add the following workaround
   new StringRepresentation(

written by objects \\ tags: , , , ,