GWT部署到谷歌App Engine得到404错误

时间:2012-12-31 12:36:08

标签: google-app-engine gwt deployment

我正在尝试学习如何将GWT应用程序部署到Google App Engine。 我在Java 7中使用GWT 2.4 + eclipse。

我基本上有一个带有按钮但不执行任何操作的静态页面。

public class Test1 implements EntryPoint {

  public void onModuleLoad() {
        final Button sendButton = new Button("Send");
        RootPanel.get().add(sendButton);
  }
} 

我创建了我的应用程序istoeumtestedenome,并且在localhost中它可以正常工作。我已将其部署到App Engine,没有任何错误。但是当我尝试访问页面http://istoeumtestedenome.appspot.com/时,会显示404错误。

我该怎么办?

1 个答案:

答案 0 :(得分:3)

有很多事情可能出错。首先想到的是:

  1. 您的静态HTML文件(主机页面)位于错误的位置(文件夹)。
  2. 您没有在web.xml文件中指定欢迎页面 - 或者还有其他一些问题。
  3. 转到App Engine的管理控制台,然后单击日志以查看出现了什么问题。