Errai has support for JAX-RS, although when I tried to use it with the supplied Maven archetype GWT complained with the error:
No source code is available for type javax.ws.rs.core.PathSegment; did you forget to inherit a required module?
The PathSegment interface appears to be part of the official Java EE standard, so why is this class not available?
A solution is to create the javax.ws.rs.core package in your GWT project, and include the interfaces for yourself. These interfaces are MultivaluedMap:
PathSegment:
You'll need a GWT module file (in the javax.ws.rs package):
And you'll need to add an inherits reference to you application GWT module: