Google App Engine错误503 - 服务不可用 [英] Google App Engine Error 503 - Service Unavailable

查看:1232
本文介绍了Google App Engine错误503 - 服务不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在过去的几天里,每次我尝试运行我的Web应用程序时,Error - 503都显示出来了。即使我尝试进入管理页面,也会发生这种情况。这是Google的问题吗?

解决方案

在创建GAE项目时,任何扩展HttpServlet的.class用作您的Google App的入口点将映射到war / WEB-INF中的web.xml中,如下图所示:
$ b



创建扩展HttpServlet的Java Servlet必须映射到web.xml中,如下所示: -





在此测试GAE项目中,ecipse生成的示例代码创建了一个名为TestServlet.class的Java Servlet,它扩展了HttpServlet并进行了适当的映射。



要运行你的应用程序,你需要在index.html中包含映射到web.xml中的T​​estServlet.class(在这种情况下/ test)的url。 (如果生成的项目样例代码由eclipse创建,则已经完成)。

一旦您的Java Servlet在web.xml中正确映射并包含在index.html中,则单击的映射url将调用相应的Servlet并运行您的应用程序。



这将消除新项目设置中常见的503错误。


For the past couple of days, every time I try to run my web application, Error - 503 has been showing up. This happens even when I try to go to the admin page. Is this a problem with Google?

解决方案

It's important when creating a GAE project that any .class that extends HttpServlet and are used as entry point to your Google App are mapped in web.xml found in war/WEB-INF as pictured below.

Java Servlets you create that extend HttpServlet must be mapped in the web.xml like the following:-

In this Test GAE project ecipse generated sample code that created a Java Servlet called TestServlet.class that extends HttpServlet and is appropriately mapped.

To run your app you need to include the url mapped to the TestServlet.class found in the web.xml (In this case /test) in your index.html. (In the case of generated project sample code created by eclipse this will already have been done).

Once your Java Servlets are correctly mapped in the web.xml and included in your index.html the mapped url that is clicked will invoke the appropriate Servlet and run your app.

This will eliminate common 503 errors in terms of new project setup.

这篇关于Google App Engine错误503 - 服务不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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