未做任何更改的GWT样例项目在编译后无法工作



我正在为一个Google Web Toolkit项目学习本教程:https://developers.google.com/web-toolkit/gettingstarted

一切似乎都工作,除了在最后,当我调用ant build

C:UsersHebronDropboxIPgwt-2.5.1MyWebApp>ant build
Buildfile: C:UsersHebronDropboxIPgwt-2.5.1MyWebAppbuild.xml
libs:
    [mkdir] Created dir: C:UsersHebronDropboxIPgwt-2.5.1MyWebAppwarWEB-INFlib
     [copy] Copying 1 file to C:UsersHebronDropboxIPgwt-2.5.1MyWebAppwarWEB-INFlib
     [copy] Copying 1 file to C:UsersHebronDropboxIPgwt-2.5.1MyWebAppwarWEB-INFlib
javac:
    [mkdir] Created dir: C:UsersHebronDropboxIPgwt-2.5.1MyWebAppwarWEB-INFclasses
    [javac] C:UsersHebronDropboxIPgwt-2.5.1MyWebAppbuild.xml:29: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 5 source files to C:UsersHebronDropboxIPgwt-2.5.1MyWebAppwarWEB-INFclasses
     [copy] Copying 1 file to C:UsersHebronDropboxIPgwt-2.5.1MyWebAppwarWEB-INFclasses
gwtc:
     [java] Compiling module com.impulse.mywebapp.MyWebApp
     [java]    Compiling 6 permutations
     [java]       Compiling permutation 0...
     [java]       Compiling permutation 1...
     [java]       Compiling permutation 2...
     [java]       Compiling permutation 3...
     [java]       Compiling permutation 4...
     [java]       Compiling permutation 5...
     [java]    Compile of permutations succeeded
     [java] Linking into C:UsersHebronDropboxIPgwt-2.5.1MyWebAppwarmywebapp
     [java]    Link succeeded
     [java]    Compilation succeeded -- 60.848s
build:
BUILD SUCCESSFUL
Total time: 1 minute 5 seconds

看起来页面构建正确,所以当我去打开MyWebApp.html文件时,它加载静态内容没有任何问题。但是,文本框和提交按钮都不见了。当我运行ant devmode的文本框和按钮出现和工作没有任何问题,所以我只是想知道为什么它不工作在"生产模式"。

谢谢!

你必须从web服务器提供应用程序

相关内容

  • 没有找到相关文章

最新更新