延迟绑定失败错误 - 注射器 [英] Deferred binding failed error - Ginjector

查看:100
本文介绍了延迟绑定失败错误 - 注射器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我的gwt应用程序有问题,我有下面的错误,虽然我有这个继承:

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

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());
}


推荐答案

使用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=

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=

这篇关于延迟绑定失败错误 - 注射器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆