GAE/J This application does not exist (app_id=u'application-id')

浪尽此生 提交于 2019-12-20 04:22:32

问题


I use maven-gae-plugin to deploy my app, it works find until i decide to deploy it to another app-id under different Google account. i met the "This applciation does not exist" problem.

I found there are already some answers in StackOverflow, but was for python, i'm using GAE/J. I think i know the root cause, we should delete the "cache" in local, which stored my previous username/password, but what are these cache? and where are them?

Or there are other ways to avoid this, i've tried so many ways but none works, so frustrating.

Thanks in advance. I'm on Window7, GAE1.6.3

Edit: the python version answer is here: This application does not exist (app_id=xxx)


回答1:


You can use the new option --no_cookies (documented here) of the appcfg.sh tool to prevent loading the cookies. Or you could delete the cookie/cache file which at least in Linux is stored in ~/.java/.userPrefs/com/google/appengine/tools/admin/prefs.xml.

I have no experience with the maven-gae-plugin, but it seems you would need to modify the EngineGoalBase.java file to allow the new parameter.




回答2:


I'm running app engine using maven plugin. On Windows you need to delete the file in user home dir. The file name is something like .appcfg_oauth2_tokens_java




回答3:


What IDE are you using? If it's Eclipse you need to make sure you're logged into your Google account in Eclipse before trying to deploy, or you will get that error.

Alternatively, make sure your new Google account is authorized to deploy by the admin of the GAE account AND the web admin if you get your Google account through a company/organization. For example my school gmail account does not allow me to be an admin for GAE.



来源:https://stackoverflow.com/questions/12172576/gae-j-this-application-does-not-exist-app-id-uapplication-id

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!