从GAE部署GWT应用程序到Tomcat [英] Deploying GWT app from GAE to Tomcat

查看:177
本文介绍了从GAE部署GWT应用程序到Tomcat的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

部署完成后,我得到消息GWT模块'库可能需要(重新)编译。结果页面不包含我在我的java-gwt代码中确定的文本字段和按钮。所以我假设我在构建.war文件时做了一些错误,我将它部署到Tomcat。
我一直按照这些说明 https ://wiki.auckland.ac.nz/display/BeSTGRID/Deploying+GWT+to+Tomcat+in+Eclipse



它在第一个行:确保您的项目已经使用GWT编译器编译。
好​​的,我选择了GWT编译。编译后,我的var目录包含许多.cash.html文件。我制作了jar文件并运行了ant build文件(我也从提到的源文件中获取了这个文件)。毕竟我把项目部署到Tomcat并得到错误:^(


解决方案

如果您使用eclipse,是否尝试导出直接到战争档案?

右键点击您的项目>导出>网页> war文件



我继续如果你不能选择这个选项,试着看看你的项目设置,如果你在facets中选中了动态web模块。

p>

如果这还不够,请在google> web应用程序的设置中查看

检查this项目有战争目录和从这个目录启动

After deploying I get the message "GWT module 'library' may need to be (re)compiled". The resulting page doesn't contain the text fields and the buttons, which I determined in my java-gwt code. So I assume I've done something wrong while forming the .war file, which I deploy to Tomcat. I have been following these instructions https://wiki.auckland.ac.nz/display/BeSTGRID/Deploying+GWT+to+Tomcat+in+Eclipse

It says in the first line: "Make sure your project has been complied using the GWT compiler". Well, I've selected the "GWT Compile". After compilation my var directory contains many .cash.html files. I make jar and run the ant build file (which I also took from the mentioned source). After all I deploy the project to Tomcat and get the error :^(

解决方案

If you use eclipse, did you try to export directly to a War File ?

right click on your project > export > web > war file

I proceed like this, and it works !

If you cannot select this option, try to see in your project setting if you checked "dynamic web module" in the facets.

If it's not enough, have a look in your setting in "google > web application"

check the "this project has war directory" and "launch from this directory"

这篇关于从GAE部署GWT应用程序到Tomcat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆