升级到GWT 2.3.0时出现问题

Gun*_*nar 4 gwt

我完全对GWT问题感到困惑,并且不知道如何解释GWT日志或如何解决问题.我正在研究一个相当简单的模板项目.我升级到GWT 2.3.0,现在使用maven-gwt-plugin编译模块时遇到以下问题:

[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
Run Code Online (Sandbox Code Playgroud)

<删除了大量的堆栈跟踪>

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

<删除了大量的堆栈跟踪>

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

然后重复上面的两个堆栈跟踪和神秘错误消息,逐页创建(据我所知)完全无用的日志信息.

有谁知道这里会发生什么?知道谷歌在这里使用的"策略"记录是什么:).

twe*_*e17 10

贡纳尔,

我遇到了类似的问题.如果您尝试使用比maven插件更新的GWT SDK,您还必须将maven插件指向该SDK,如下所示:

http://mojo.codehaus.org/gwt-maven-plugin/user-guide/using-different-gwt-sdk-version.html

否则,我相信maven插件仍将使用匹配它的GWT版本(如果您要从maven repo中删除GWT jar,您可以通过查看下载旧版本来确认这一点.)