无法使GWT devmode插件与Firefox一起使用

时间:2013-05-24 17:12:31

标签: java gwt errai

使用此GWT Plugin在Firefox(版本21)上运行GWT devmode时,我总是会遇到此错误。

错误:

[INFO] WARN [EnvUtil] enable reachability analysis with -Derrai.compile.perf.perform_reachability_analysis=true
[INFO] INFO [IOCBootstrapGenerator] generated IOC bootstrapping class in 6499ms (5174 beans processed)
[INFO] INFO [IOCBootstrapGenerator] using IOC bootstrapping code at: D:\magick\app.ui\.errai\BootstrapperImpl.java
[ERROR] java.lang.RuntimeException: Deferred binding failed for 'org.jboss.errai.ioc.client.Bootstrapper' (did you forget to inherit a required module?)
[ERROR]     at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
[ERROR]     at com.google.gwt.core.client.GWT.create(GWT.java:97)
[ERROR]     at org.jboss.errai.ioc.client.Container.bootstrapContainer(Container.java:55)
[ERROR]     at org.jboss.errai.ioc.client.Container.onModuleLoad(Container.java:34)
[ERROR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[ERROR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR]     at java.lang.reflect.Method.invoke(Method.java:601)
[ERROR]     at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
[ERROR]     at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
[ERROR]     at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525)
[ERROR]     at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
[ERROR]     at java.lang.Thread.run(Thread.java:722)
[ERROR] Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
[ERROR]     at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:503)
[ERROR]     at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
[ERROR]     ... 12 more

但是,使用谷歌浏览器时,我在同一个GWT应用程序中没有出现此错误。

可能是什么问题?我错过了什么?我正在使用GWT maven插件:

<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>

1 个答案:

答案 0 :(得分:1)

分两部分回答:

1st:您当前使用的插件处于RC状态。我建议使用较旧版本的FF(我使用带有this plugin的18)和相应的插件来进行开发。对于插件团队而言,这是一项艰难的工作,可以跟上FF发布周期,如你所知,这个周期很短。

第二:检查你的gwt.xml。可能遗漏了遗传。以下之一:

<inherits name="org.jboss.errai.common.ErraiCommon" />
<inherits name="org.jboss.errai.bus.ErraiBus" />
<inherits name="org.jboss.errai.enterprise.CDI" />
<inherits name="org.jboss.errai.ioc.Container" />
<inherits name="org.jboss.errai.marshalling.ErraiMarshalling" />
<inherits name="org.jboss.errai.databinding.DataBinding" />
<inherits name="org.jboss.errai.enterprise.Jaxrs" />
相关问题