title: Error injecting com.gwtplatform.dispatch.rest.client.ActionMetadataProvider
body: <p>I have the following problem:</p>
  
  <pre><code>12:45:47.505 [ERROR] [cGui] Error injecting com.gwtplatform.dispatch.rest.client.ActionMetadataProvider: Unable to create or inherit binding: No @Inject or default constructor found for com.gwtplatform.dispatch.rest.client.ActionMetadataProvider
  Path to required node:
  
  com.gwtplatform.dispatch.rest.client.RestRequestBuilderFactory   [com.gwtplatform.dispatch.rest.client.gin.RestDispatchAsyncModule.configureDispatch(RestDispatchAsyncModule.java:100)]
  -&gt;; com.gwtplatform.dispatch.rest.client.DefaultRestRequestBuilderFactory [com.gwtplatform.dispatch.rest.client.gin.RestDispatchAsyncModule.configureDispatch(RestDispatchAsyncModule.java:100)]
  -&gt;; com.gwtplatform.dispatch.rest.client.ActionMetadataProvider [@Inject constructor of com.gwtplatform.dispatch.rest.client.DefaultRestRequestBuilderFactory]
  </code></pre>
  
  <p>My <code>gwt.xml</code></p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
  &lt;!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.6.1//EN"
      "https://raw.githubusercontent.com/gwtproject/gwt/2.6.1/distro-source/core/src/gwt-module.dtd"&gt;
  &lt;module rename-to="cGui"&gt;
  &lt;!-- Inherit the core Web Toolkit stuff. --&gt;
  &lt;inherits name='com.google.gwt.user.User' /&gt;
  &lt;inherits name='com.google.gwt.inject.Inject' /&gt;
  
  &lt;!-- Default css --&gt;
  &lt;inherits name='com.google.gwt.user.theme.standard.Standard' /&gt;
  &lt;!-- &lt;inherits name='com.google.gwt.user.theme.chrome.Chrome'/&gt; --&gt;
  &lt;!-- &lt;inherits name='com.google.gwt.user.theme.dark.Dark'/&gt; --&gt;
  
  &lt;!-- Other module inherits --&gt;
  &lt;inherits name='com.gwtplatform.dispatch.Dispatch' /&gt;
  &lt;inherits name='com.gwtplatform.mvp.MvpWithEntryPoint' /&gt;
  &lt;!--    &lt;inherits name="de.barop.gwt.PushState" /&gt; --&gt;
  
  &lt;inherits name='com.gwtplatform.dispatch.rest.DispatchRest' /&gt;
  &lt;inherits name="com.google.gwt.uibinder.GinUiBinder" /&gt;
  &lt;!--    &lt;inherits name="com.gwtplatform.mvp.MvpWithFormFactor" /&gt;  --&gt;
  
  &lt;inherits name="com.google.gwt.query.Query" /&gt;
  &lt;inherits name="com.google.common.collect.Collect" /&gt;
  &lt;!--    &lt;inherits name="com.googlecode.objectify.Objectify" /&gt;  --&gt;
  &lt;inherits name="com.gwtplatform.dispatch.rpc.DispatchRpc" /&gt;
  
  &lt;source path='client' /&gt;
  &lt;source path='shared' /&gt;
  
  &lt;set-configuration-property name="gin.ginjector.modules"
      value="*CENSORED*.client.gin.ClientModule" /&gt;
  &lt;/module&gt;
  </code></pre>
  
  <p><code>ClientModule.java</code></p>
  
  <pre><code>public class ClientModule extends AbstractPresenterModule {
  
  private static Logger logger = Logger.getLogger(ClientModule.class.getName());
  
  @Override
  protected void configure() {
      logger.log(Level.INFO, "Installing Client Module dependencies");
      install(new DefaultModule());
      logger.log(Level.INFO, "DefaultModule installed");
      install(new SecurityModule());
      logger.log(Level.INFO, "SecurityModule installed");
      install(new ApplicationModule());
      logger.log(Level.INFO, "ApplicationModule installed");
      install(new RestDispatchAsyncModule());
      logger.log(Level.INFO, "RestDispatchAsyncModule installed");
      install(new RpcDispatchAsyncModule());
      logger.log(Level.INFO, "RpcDispatchAsyncModule installed");
      // DefaultPlaceManager Places
      bindConstant().annotatedWith(DefaultPlace.class).to(NameTokens.LOGIN);
      bindConstant().annotatedWith(ErrorPlace.class).to(NameTokens.ERROR);
      bindConstant().annotatedWith(UnauthorizedPlace.class).to(NameTokens.UNAUTHORIZED);
      bindConstant().annotatedWith(RestApplicationPath.class).to("/rest");
      }
  }
  </code></pre>
  
  <p>The code is based on <a href="https://github.com/ArcBees/GWTP/tree/master/gwtp-carstore" rel="nofollow">ArcBees carstore</a> tag 1.3.1</p>
  
  <p>My dependencies: <a href="http://pastebin.com/SL6qvLzu" rel="nofollow">pastebin.com</a></p>
  
  <p>What have I tried:</p>
  
  <p>I made sure every enum and DTO is serializable</p>
  
  <p>Tried to fiddle around with gwt.xml</p>
  
  <p>Googled a lot</p>
  
  <p>I've been struggling with this for the past 5 hours.</p>
  
  <p>If I have forgotten to attach some file, or did not give enough details please tell me. I will update this post accordingly.</p>