Google app engine 在服务器上配置GAE远程API

Google app engine 在服务器上配置GAE远程API,google-app-engine,web.xml,remoteapi,Google App Engine,Web.xml,Remoteapi,《Java at远程API简介》运行良好,但我只收到404个错误: Exception in thread "main" java.io.IOException: can't get appId from remote api; status code = 404, body: <html><head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <title&g

《Java at远程API简介》运行良好,但我只收到404个错误:

Exception in thread "main" java.io.IOException: can't get appId from remote api; status code = 404, body: 
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>404 Not Found</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Not Found</h1>
<h2>The requested URL <code>/remote_api</code> was not found on this server.</h2>
<h2></h2>
</body></html>
我认为这是因为服务器配置不正确。“在服务器上配置远程API”一节中的说明对我来说太模糊了——初学者。 “将以下内容添加到web.xml”语句就是问题所在。我不确定这句话指的是哪个web.xml。将web.xml放在各种明显的地方,例如war/web-INF/web.xml,似乎没有什么帮助。还尝试将其作为一个动态Web项目(在Eclipse中)使用WebContent/Web-INF/Web.xml中的xml代码,这也没有帮助


看起来像是对使用远程API但看不到前进方向的Java项目结构的基本误解。非常感谢您的建议。

在本例中,它是一个单模块应用程序,web.xml文件直接位于目录war/web-INF中

您可以通过以下方式为Google App Engine构建一个完整的示例应用程序

此外,该应用程序还将为您创建一个类似的示例应用程序