无法弄清楚为什么我无法将GWT应用程序部署到Apache Tomcat 7上 [英] Cannot figure out why I cannot deploy GWT application onto Apache Tomcat 7
问题描述
类型状态报告
消息/SampleApp/SampleApp.html
描述请求的资源(/SampleApp/SampleApp.html)不是
可用的。
我不知道该怎么做。我试图尽可能做一个简单的例子,让它起作用,但我做不到。帮助!
更新:无法将servlet示例GWT应用程序部署到Apache Tomcat 7 部署一个gwt在tomcat上的应用程序,你必须使用ANT创建战争文件。
按照此链接创建war文件,然后将该war文件放在tomcat的webapps文件夹中,它肯定会起作用。
http://blog.elitecoderz.net/gwt-and-tomcat-create-war-using-eclipse-to-deploy-war-on-tomcat/2009/12/
First, I tried to follow the tutorial to deploy my application. After some fiddling and failures, I thought I should run the GWT sample Contacts project and see if that will work on my tomcat with RPC calls. Again, no luck. What I did was create a sample application (when using Eclipse Wizard) compile, run it once on the development server, and see that it works.
Then I take the contents of the war folder, zip it, rename it to SampleApp.war, deploy it on the Apache, it unzips. I have a folder called SampleApp. In it is the .html, .css, WEB-INF. I attempt to do localhost:8080/SampleApp/SampleApp.html but it doesnt work.
type Status report
message /SampleApp/SampleApp.html
description The requested resource (/SampleApp/SampleApp.html) is not available.
I have no idea what to do. I tried to do the simple example possible and get it to work but I cannot. Help!
UPDATED: Cannot deploy servlet sample GWT app to Apache Tomcat 7
To Deploy a gwt app on tomcat you have to create war file using ANT.
Follow this link to create the war file and then put that war file in webapps folder of tomcat it will surely work.
http://blog.elitecoderz.net/gwt-and-tomcat-create-war-using-eclipse-to-deploy-war-on-tomcat/2009/12/
这篇关于无法弄清楚为什么我无法将GWT应用程序部署到Apache Tomcat 7上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!