java 在 tomcat 中部署 GWT

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4191135/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 05:14:38  来源:igfitidea点击:

Deploying GWT in tomcat

javagwttomcatwebserver

提问by rajesh

i am new to gwt and i am very much satisfied for my needs but my problem is how can i deploy and run it in my tomcat webserver and i tried googleing but cant get any success in that can any one explain how to deploy it with some samples ......

我是 gwt 的新手,我对我的需求非常满意,但我的问题是如何在我的 tomcat 网络服务器中部署和运行它,我尝试了谷歌搜索但无法获得任何成功,任何人都可以解释如何部署它样品......

回答by AlexR

Read this article: http://code.google.com/webtoolkit/doc/latest/DevGuideDeploying.html

阅读这篇文章:http: //code.google.com/webtoolkit/doc/latest/DevGuideDeploying.html

The webaps directory can be found directly under your tomcat home.

webaps 目录可以直接在你的 tomcat home 下找到。

回答by Steve

I figured I wanted to put something on here because I kept digging in the wrong direction. Everyone talks about how to copy this here copy that there. The solution for me was extremely simple, and not nearly as complicated as these pages try to make them out to be.

我想我想在这里放一些东西,因为我一直在朝错误的方向挖掘。每个人都在谈论如何复制这里复制那里。对我来说,解决方案非常简单,并不像这些页面试图使它们变得那么复杂。

If you are using Eclipse with GWT 2.4: Right click on the project, select Google -> GWT Compile Afterwards zip the contents of the war directory (rename to .war) and deploy. Works great for Tomcat 6, no issues so far.

如果您使用带有 GWT 2.4 的 Eclipse:右键单击项目,选择 Google -> GWT Compile After然后压缩 war 目录的内容(重命名为 .war)并部署。适用于 Tomcat 6,目前没有问题。

回答by Adam

I use this plugin to generate JAR file: https://code.google.com/p/gwt-project-export-wizard/.

我使用这个插件来生成 JAR 文件:https: //code.google.com/p/gwt-project-export-wizard/