【发布时间】: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 有两步。
- 将 src 目录导出到 jar 文件中。
- 使用ant创建war文件。
我将hello.war 文件复制到/Library/Tomcat/webapps,并使用localhost:8080/hello 打开浏览器出现此错误。
当我单击 webapps 目录中的 HTML 文件时,我认为包装有问题。
可能出了什么问题?
【问题讨论】: