开发者

Deferred binding failed error - Ginjector

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(ginject开发者_Python百科or.getEventBus());
}


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


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=

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜