【问题标题】:Issue with deploying GWT app to tomcat in eclipse在eclipse中将GWT应用程序部署到tomcat的问题
【发布时间】:2012-09-19 14:00:08
【问题描述】:

this tutorial 之后,我可以使用 eclipse 执行 GWT 应用程序。我可以通过http://127.0.0.1:8888/De_vogella_gwt_helloworld.html?gwt.codesvr=127.0.0.1:9997 访问该应用程序。

然后,我用谷歌搜索找到一种将应用程序部署到 tomcat 的方法,我找到了this site。将 GWT 应用程序导出到 tomcat 有两步。

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

我将hello.war 文件复制到/Library/Tomcat/webapps,并使用localhost:8080/hello 打开浏览器出现此错误。

当我单击 webapps 目录中的 HTML 文件时,我认为包装有问题。

可能出了什么问题?

【问题讨论】:

    标签: eclipse gwt tomcat


    【解决方案1】:

    您需要编译 GWT 应用以在生产模式下运行。请参阅 GWT 文档的 this section 了解详细步骤(适用于 GWT 2.4)。

    【讨论】:

      【解决方案2】:

      根据大卫的回答,我可以让它工作。

      我不得不再次编译应用程序。

      让它工作。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2017-10-25
        • 2011-09-06
        • 1970-01-01
        • 2018-07-14
        • 2023-03-18
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多