获取错误404,部署到Google App Engine时未找到应用程序错误 [英] Getting Error 404, application not found error when deploying to Google App Engine
问题描述
我有一个使用Eclipse插件的Java应用程序。当我尝试上传时,出现错误:
I have a Java Application, using Eclipse plugin. When I try to upload, I get error:
com.google.appengine.tools.admin.HttpIoException:网址发布错误:< a href =https://appengine.google.com/api/appversion/create?app_id=my_appname&version=1& rel =nofollow> https://appengine.google.com/api/appversion/create?app_id=my_appname&version=1&
404未找到
这个应用程序不存在(app_id = u'my_appname')。
com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=my_appname&version=1&
404 Not Found
This application does not exist (app_id=u'my_appname').
这里, my_appname
是我的Google App Engine帐户的应用程序ID。我已经检查过 appengine-web.xml
的内容,它看起来很好:
Here, my_appname
is the application id from my Google App Engine account. I have already checked the contents of appengine-web.xml
, it looks fine:
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>my_appname</application>
<version>1</version>
</appengine-web-app>
为什么我得到这个错误,我该如何修复我的应用程序?
Why am I getting this error and how can I fix my application?
推荐答案
原因:在build.properties文件中更改了应用程序名称但未将其更新为appengine -web.xml文件。
Reason: This happens when you had changed your application name in "build.properties" file but its not updated into "appengine-web.xml" file.
解决方案:请继续手动更改appengine-web.xml中的应用程序名称。
Solution: Please go ahead and change application name in "appengine-web.xml" manually.
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>Modified_application_name</application>
<version>1</version>
<threadsafe>true</threadsafe>
</appengine-web-app>
这篇关于获取错误404,部署到Google App Engine时未找到应用程序错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!