Deferred binding failed error - Ginjector

怎甘沉沦 提交于 2019-12-08 07:39:46

问题


Hi I am having a problem with my gwt app, I am having the error below although I have this inherit:

<inherits name='com.google.gwt.inject.Inject' />

Error:

Caused by: java.lang.RuntimeException: Deferred binding failed for 'com.mygwtapp.client.gin.Injector' (did you forget to inherit a required module?)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
    at com.google.gwt.core.client.GWT.create(GWT.java:98)
    at com.mygwtapp.client.Mygwtapp.onModuleLoad(Mygwtapp.java:29)

Mygwtapp.java

@Override
public void onModuleLoad() {

    final Injector ginjector = GWT.create(Injector.class);

    final MainPresenter mainPresenter = ginjector.getMainPresenter();

    mainPresenter.bind();

    RootPanel.get().add(mainPresenter.getDisplay().asWidget());     

    logEvent(ginjector.getEventBus());
}

回答1:


"deferred binding failed" errors are always preceeded by specific errors pointing at the exact problem.




回答2:


The problem was solution was to use GWT 2.1.0 M2 http://code.google.com/p/google-web-toolkit/downloads/detail?name=gwt-2.1.0.m2.zip&can=2&q=



来源:https://stackoverflow.com/questions/6555062/deferred-binding-failed-error-ginjector

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!