2012-09-19 156 views
0

以下this tutorial,我可以使用eclipse执行GWT应用程序。我可以通过http://127.0.0.1:8888/De_vogella_gwt_helloworld.html?gwt.codesvr=127.0.0.1:9997访问该应用。在eclipse中将GWT应用程序部署到tomcat的问题

enter image description here

enter image description here

然后,我用Google搜索找到一种方法来部署应用程序到Tomcat,我发现this site。它有两个步骤将GWT应用导出到tomcat。

  1. 将src目录导出到jar文件中。
  2. 使用ant创建一个war文件。

我复制了hello.war文件到/Library/Tomcat/webapps,并与localhost:8080/hello打开浏览器来得到这个错误。

enter image description here

当我点击webapps目录下的HTML文件,所以我觉得什么是错的与包装。

enter image description here

可能是什么问题?

回答

3

您需要编译GWT应用程序才能在生产模式下运行。有关详细步骤,请参阅GWT doc的this section(适用于GWT 2.4)。

0

从David的回答中,我可以得到它的工作。我不得不再次编译应用程序。

enter image description here

得到它的工作。

enter image description here

相关问题