1

私のプロジェクトでは 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を使用しています

4

2 に答える 2

0

これは開発中 (つまり、コンパイル時ではない) であると想定しています。DevMode (またはそのようなもの) ではなく HostedMode をまだ使用していると思います。

ちなみに、HostedMode は GWT 2.5.1 から削除されます。

于 2013-01-28T16:20:48.650 に答える
0

clsspath を更新する前に、すべてのデバッグおよび実行構成を削除してください。

新しい構成を作成して実行してみてください。

于 2013-01-28T17:27:01.533 に答える