JBoss.orgCommunity Documentation
This section explains the cause of and solution to some common problems that people encounter when building applications with Errai.
Of course, when lots of people trip over the same problem, it's probably because there is a deficiency in the framework! A FAQ list like this is just a band-aid solution. If you have suggestions for permanent fixes to these problems, please get in touch with us: file an issue in our issue tracker, chat with us on IRC, or post a suggestion on our forum.
But for now, on to the FAQ:
Possible symptoms:
uncaught exception: java.lang.RuntimeException: No proxy provider found for type: my.fully.qualified.ServiceName
Answer: Make sure the Section 8.3, “ErraiApp.properties” file is actually making it into your runtime classpath.
One common cause of this problem is a <resources> section in pom.xml that includes src/main/java (to expose .java sources to the GWT compiler) that does not also include src/main/resources as a resource path. You must include both explicitly:
<resources>
<resource>
<directory>src/main/java</directory>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>