在我的项目中,我使用了 gwt 1.7,但最近我升级到了 2.0。现在我有这个错误:
ERROR: Unable to find 'portal.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
ERROR: Failed to load module 'portal' from user agent 'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:18.0) Gecko/20100101 Firefox/18.0' at localhost:40456
Portal - 是要加载的模块的名称。我真的没有这个文件,而是我有 Application.gwt.xml 其中包含:
<module rename-to="portal">
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>
<inherits name='com.extjs.gxt.ui.GXT'/>
<inherits name='com.google.gwt.http.HTTP'/>
<source path="client"/>
<source path="data"/>
<source path="com.extjs.gxt.ui.client.data.BaseModel"/>
<source path="com.thoughtworks.xstream.XStream"/>
<!-- Inherit AMPS Applica module. -->
<inherits name="com.example.core.application.AmpsApplicationApi"/>
<inherits name="com.example.core.domain.CoreDomainApi"/>
<!-- inherit css based theme -->
<!-- Specify the app entry point class. -->
<entry-point class='com.example.portal.ui.client.Application'/>
<!-- Specify the application specific style sheet. -->
<stylesheet src='Application.css'/>
<!--<stylesheet src='loginPage.css'/>-->
</module>
以前好像可以用,现在不行了。
PS 我正在使用 Intellij Idea 12