Cannot figure out why I cannot deploy GWT application onto Apache Tomcat 7

蓝咒 提交于 2019-12-11 19:19:26

问题


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


回答1:


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/



来源:https://stackoverflow.com/questions/16074224/cannot-figure-out-why-i-cannot-deploy-gwt-application-onto-apache-tomcat-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!