2011-07-24 34 views
4

我完全被GWT问题弄得一团糟,并且不知道如何解释GWT日志或如何解决问题。我正在做一个相当平凡的模板项目。我升级到2.3.0 GWT和我现在遇到了以下问题使用Maven的GWT-插件编译模块时:问题升级到GWT 2.3.0

[INFO] --- gwt-maven-plugin:2.3.0:compile (default) @ gaewebtemplate --- 
[INFO] auto discovered modules [stuff.gaegwttemplate.Main, stuff.gaegwttemplate.security.SecurityRequest] 
[INFO] Loading inherited module 'com.google.gwt.activity.Activity' 
[INFO] Loading inherited module 'com.google.gwt.place.Place' 
[INFO]  Loading inherited module 'com.google.gwt.user.User' 
[INFO]   Loading inherited module 'com.google.gwt.animation.Animation' 
[INFO]    Loading inherited module 'com.google.gwt.core.Core' 
[INFO]    Loading inherited module 'com.google.gwt.core.CrossSiteIframeLinker' 
[INFO]     [ERROR] Unable to load class 'com.google.gwt.core.linker.DirectInstallLinker' 
[INFO] java.lang.ClassNotFoundException: com.google.gwt.core.linker.DirectInstallLinker 

<巨大的堆栈跟踪删除>

[INFO]     [ERROR] Failure while parsing XML 
[INFO] com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) 

<巨大栈跟踪除去>

[INFO]     [ERROR] Unexpected error while processing XML 
[INFO] com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) 

两个堆栈跟踪和神秘的错误消息上面。然后重复的页之后创建页面(据我可以告诉)完全无用的日志信息。

有人知道这里可能会发生什么吗?任何想法什么记录谷歌在这里使用的“策略”:)。

+0

我在从2.3.0更新到2.4.0时也遇到了这个问题,并且验证了gwt-dev,gwt-user和gwt-servlet都在同一版本上。任何人有任何线索? – user469243

+0

我也有同样的问题,从2.3到2.4,并且来自@ twelve17的答案也在这里工作,也就是我所要做的就是修改我的pom,以确保gwt-maven-plugin的版本至少和新版一样gwt-servlet等等,也就是说我一直在使用gwt-maven-plugin的2.3版本并将其更新到2.4.0。 –

回答

1

DirectInstallLinker类似乎不在GWT 2.3中,但我确实在trunk中看到它 - 你确定你使用的是2.3.0吗?为了得到这个错误,你的类路径中至少有一个比2.3.0更新的东西。

GWT 2.3.0是released 5月2日,而DirectInstallLinker没有出现过added to source,直到5月6

GWT编译器是使用TreeLogger类,内置于GWT的一种方式编译器和生成器嵌套调试/错误/信息消息。

+0

谢谢科林。你是绝对正确的。我在本地构建了主干,并在我的Maven回购库中安装了这些工件。我的首选是继续使用trunk,因为RequestFactory在2.3中看起来有些破碎(例如,未更新为使用新的com.google.web.bindery.event.shared.EventBus类)。任何指针,可以帮助我解决这个问题将不胜感激。 – 2011-07-25 12:52:10

+0

不确定你的意思 - 2.2中的不推荐使用的com.google.web.bindery.requestfactory.shared.RequestFactory类确实引用了'com.google.web.bindery.event.shared.EventBus'。如果您仍在使用不推荐的'com.google.gwt.requestfactory.shared。RequestFactory',你应该移动到新的。 –

0

当从gwt 2.3升级到gwt 2.4时,我得到了同样的错误。我很愚蠢,更新了gwt-user依赖关系的版本,但没有更新gwt-dev依赖关系。所以,检查你是不是也很傻。