In this post I describe a way to "fake" or "stub" your RPC calls in GWT's hosted mode. It allows you to deploy to web mode without having to change any code, change any configurations, and without any stub or development-only code being deployed. It's very clean, and will work with any web application setup (for example, Spring is optional).
The full post is available at http://docs.google.com/Doc?docid=dw2zgx2_106fd4mtt&hl=en.