英文:
gwt application not deployed to google app engine with appcfg
问题
我有一个使用 Eclipse 开发的 GWT 2.7 项目。
从 1.9.20 版本开始,我无法成功将项目部署到 Google 应用引擎。
我在 Eclipse 中使用旧的 GWT 插件来部署项目,
当部署完成后,我收到以下错误信息:
无法更新:
java.lang.RuntimeException: 在部署过程中遇到严重问题。请参考日志获取更多信息。
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)
我认为这与 Google 应用引擎不支持使用 appcfg 部署项目有关。
他们仅支持使用 gcloud 进行部署,但我的项目不是 Maven 项目,我不知道如何使用 gcloud 进行部署。
我尝试将项目转换为 Maven 项目并使用以下命令在命令行中部署:
mvn package appengine:deploy -Dapp.deploy.projectId=myProjectId
但我收到错误信息:
文件路径 /BaseResourceCss.java:[3,39] 包 com.google.gwt.resources.client 不存在
对项目中的所有文件都收到类似的错误信息。
谢谢大家。
英文:
I have gwt 2.7 project that i develop with eclipse.
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
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.
they support only deploy with gcloud but my project is not maven and i do not know how to deploy project with 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
thank you everyone
答案1
得分: 3
自从去年8月30日起,appcfg 已被弃用。如您所见在分享的链接中,建议使用 gcloud 命令。
根据您使用的语言,需要执行的命令也会有所不同。以下是示例:
对于 Java 8 应用程序,首先构建该应用程序。然后使用以下命令进行部署:
gcloud app deploy WEB-INF/appengine.xml
对于 Java 11 应用程序,您可以将源代码部署到 Java 11 运行时,无需在本地构建:
gcloud app deploy pom.xml
要将 Java fatjar 部署到 Java 11 运行时:
gcloud app deploy myapp.jar
您还可以使用基于 Cloud SDK 的 Maven 或 Gradle 插件来构建和部署 Java 8 和 Java 11 应用程序。
英文:
Since the last August 30th the appcfg is deprecated. As you can see in the shared link, it is recommended to use the gcloud commands.
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. 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:
gcloud app deploy pom.xml
To deploy a Java fatjar to the Java 11 runtime:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论