简体   繁体   English

gwt 应用程序未使用 appcfg 部署到谷歌应用程序引擎

[英]gwt application not deployed to google app engine with appcfg

I have gwt 2.7 project that i develop with eclipse.我有使用 Eclipse 开发的 gwt 2.7 项目。 from 1.9.20 I not success to deploy project to google app engine I deploy the project with old gwt plugin in eclipse when the deploy finished I get error从 1.9.20 开始,我没有成功将项目部署到谷歌应用引擎我在 Eclipse 中使用旧的 gwt 插件部署项目,当部署完成时我收到错误

Unable to update:
java.lang.RuntimeException: Fatal problem encountered during deployment. Please refer to the 
logs for more information.
at com.google.appengine.tools.admin.AppVersionUpload.isServing(AppVersionUpload.java:1051)
at com.google.appengine.tools.admin.AppVersionUpload.access$200(AppVersionUpload.java:43)
at com.google.appengine.tools.admin.AppVersionUpload$2.call(AppVersionUpload.java:884)
at com.google.appengine.tools.admin.AppVersionUpload$2.call(AppVersionUpload.java:881)
at com.google.appengine.tools.admin.AppVersionUpload$3.call(AppVersionUpload.java:1188)
at com.google.appengine.tools.admin.AppVersionUpload$3.call(AppVersionUpload.java:1185)
at com.google.appengine.tools.admin.AppVersionUpload.retryWithBackoffOptional(AppVersionUpload.java:1213)
at com.google.appengine.tools.admin.AppVersionUpload.retryWithBackoff(AppVersionUpload.java:1183)
at com.google.appengine.tools.admin.AppVersionUpload.commit(AppVersionUpload.java:881)
at com.google.appengine.tools.admin.AppVersionUpload.uploadFilesTransaction(AppVersionUpload.java:223)
at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:197)
at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:580)
at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:65)
at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:438)
at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:158)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

I think is related the google app engine not supported to deploy project with appcfg.我认为与不支持使用 appcfg 部署项目的谷歌应用引擎有关。 they support only deploy with gcloud but my project is not maven and i do not know how to deploy project with gcloud.他们只支持使用 gcloud 部署,但我的项目不是 maven,我不知道如何使用 gcloud 部署项目。 I try to convert to maven project and deploy with gcloud but when I run mvn package appengine:deploy -Dapp.deploy.projectId=myProjectId from commandline I get error path to file /BaseResourceCss.java:[3,39] package com.google.gwt.resources.client does not exist and I get like this for all files in project我尝试转换为 maven 项目并使用 gcloud 进行部署,但是当我从命令行运行 mvn package appengine:deploy -Dapp.deploy.projectId=myProjectId 时,我得到了文件 /BaseResourceCss.java:[3,39] package com.google 的错误路径.gwt.resources.client 不存在,我对项目中的所有文件都是这样

thank you everyone谢谢大家

Since the last August 30th the appcfg is deprecated.自去年 8 月 30 日以来, appcfg已被弃用。 As you can see in the shared link, it is recommended to use the gcloud commands.正如您在共享链接中看到的,建议使用 gcloud 命令。

Depends on the language you are using, is the command you need to execute.取决于您使用的语言,是您需要执行的命令。 Below are the examples:以下是示例:

For Java 8 apps, build the app first.对于 Java 8 应用程序,首先构建应用程序。 Then deploy with:然后部署:

gcloud app deploy WEB-INF/appengine.xml

For Java 11 apps, you can deploy the source code to the Java 11 runtime without building locally:对于 Java 11 应用程序,您可以将源代码部署到 Java 11 运行时,而无需在本地构建:

gcloud app deploy pom.xml

To deploy a Java fatjar to the Java 11 runtime:将 Java fatjar 部署到 Java 11 运行时:

gcloud app deploy myapp.jar

You can also use the Cloud SDK-based Maven or Gradle plugins to build and deploy Java 8 and Java 11 apps.您还可以使用基于 Cloud SDK 的MavenGradle插件来构建和部署 Java 8 和 Java 11 应用程序。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM