简体   繁体   English

迁移到OAuth以使用ant将war文件上传到Google App Engine

[英]Migrating to OAuth for uploading war file to Google App Engine using ant

Google App Engine deprecated client login and moved to OAuth . Google App Engine不赞成使用客户端登录,并移至OAuth This effects uploading the app(may be war file) to Google App Engine as it requires authentication. 由于需要进行身份验证,因此可以将应用程序(可能是战争文件)上传到Google App Engine If ant update is used via AppCfg it throws an error - 如果通过AppCfg使用ant update,则会引发错误-

"java.lang.RuntimeException: Bad authentication response: 404 Not Found Unable to update app: Bad authentication response: 404 Not Found" “ java.lang.RuntimeException:错误的身份验证响应:找不到404无法更新应用程序:错误的身份验证响应:找不到404”

There are few solutions available for maven but not for ant . 几乎没有适用于maven解决方案,但不适用于ant

This issue is fixed by moving to latest Google App Engine version(1.9.34). 通过移至最新的Google App Engine版本(1.9.34),可以解决此问题。 Latest appcfg update command asks for the OAuth by default. 默认情况下,最新的appcfg更新命令会要求OAuth。 If you are running this command in a remote server(headless browser environment) make sure you run - 'unset DISPLAY'. 如果在远程服务器(无头浏览器环境)中运行此命令,请确保运行-'unset DISPLAY'。 Otherwise authorisation fails trying to open a browser. 否则,授权将无法尝试打开浏览器。

Ref links: 参考链接:

  1. Passwordless Login 无密码登录
  2. Java awt headless Java AWT无头

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过使用特定的jar来创建Java类来在Google App Engine中部署War文件 - Deploying war file in google app engine by creating a java class using the jar specific to deploy it 使用 Java 通过 Google App Engine 将文件上传到 Google Cloud Storage:(没有这样的文件或目录) - Uploading Files to Google Cloud Storage via Google App Engine using Java: (No such file or directory) 使用Google App Engine将文件上传到Blobstore时出现HTTP 400错误 - http 400 error uploading file to blobstore with google app engine 使用Java在没有网络界面的情况下将文件上传到Google App Engine - Uploading files to Google App Engine using Java without a web interface 使用谷歌应用程序引擎java sdk上传java应用程序 - uploading java application using google app engine java sdk 一步上传,使用Google App Engine上传图片 - A one step upload for uploading images using google app engine 将Google App Engine导出为WAR / EAR - Exporting Google app engine as WAR/EAR OAuth:使用Facebook SSO在Google App Engine上验证Android用户 - OAuth: Authenticating Android user on google app engine using Facebook SSO 使用OAuth2令牌对Google App Engine上托管的API进行身份验证? - Using OAuth2 token to authenticate to an API hosted on Google App Engine? 使用ANT创建具有版本的WAR文件 - Create a WAR file with version using ANT
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM