8.1. Enabling annotation processing

As of GWT 2.4, RequestFactory relies on the execution of a Java annotation processor. Annotation processors can be considered code generators that are part of Java (not GWT). In this case GWT requires the generation of some additional server-side classes that are used in conjunction with the RequestFactory servlet to service RPC requests.

So, what does this mean to you? It means that in any project where you use RequestFactory you must allow annotation processing to occur. In Eclipse this means turning on annotation processing and pointing it to a specific jar file, and in Maven it means a slight configuration change. When the RequestFactory annotation processor hasn’t been run, you can expect to see an error ...

Get GWT in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.