Java 错误“上载到新应用程序的第一个模块必须是“默认”模块”

Java 错误“上载到新应用程序的第一个模块必须是“默认”模块”,java,google-app-engine,maven,Java,Google App Engine,Maven,我正在尝试为Google App Engine提供一个多模块的应用程序。我是从这个发展起来的 我能够在开发服务器上成功运行我的应用程序,但当我尝试使用命令mvn appengine:update上载到Google App Engine时,遇到以下错误: 除了修改模块名称之外,我的设置与。根据谷歌文档,应该至少有一个默认模块: 默认模块 每个应用程序都必须有一个默认模块。要定义默认模块,请在模块的appengine-web.xml文件中包含默认设置,或保留设置 还要确保将默认模块列为EAR目录的M

我正在尝试为Google App Engine提供一个多模块的应用程序。我是从这个发展起来的

我能够在开发服务器上成功运行我的应用程序,但当我尝试使用命令mvn appengine:update上载到Google App Engine时,遇到以下错误:


除了修改模块名称之外,我的设置与。

根据谷歌文档,应该至少有一个默认模块:

默认模块

每个应用程序都必须有一个默认模块。要定义默认模块,请在模块的appengine-web.xml文件中包含默认设置,或保留设置

还要确保将默认模块列为EAR目录的META-INF/application.xml文件中的第一个模块,如下例所示。 资料来源:

但是,这两个模块的appengine-web.xml文件中都有一个标记


我发现有效的解决方案是从appengine-web.xml文件中删除标记。

根据谷歌文档,应该至少有一个默认模块:

默认模块

每个应用程序都必须有一个默认模块。要定义默认模块,请在模块的appengine-web.xml文件中包含默认设置,或保留设置

还要确保将默认模块列为EAR目录的META-INF/application.xml文件中的第一个模块,如下例所示。 资料来源:

但是,这两个模块的appengine-web.xml文件中都有一个标记


我发现有效的解决方案是从appengine-web.xml文件中删除标记。

尝试从app.yaml中删除以下行:


然后再次运行gcloud app deploy。

尝试从app.yaml中删除以下行:

然后再次运行gcloud app deploy。

或将其更改为service:default或将其更改为service:default
Error Details:
Nov 05, 2014 11:58:15 AM org.apache.jasper.JspC processFile
INFO: Built File: /guestbook.jsp


com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/create?module=nbsocialmetrics-frontend&app_id=nbsocialmetrics&version=1&
400 Bad Request
The first module you upload to a new application must be the 'default' module.  Please upload a version of the 'default' module before uploading a version for the 'nbsocialmetrics-frontend' module. See the documentation for more information. Python: (https://developers.google.com/appengine/docs/python/modules/#Python_Uploading%20modules) Java: (https://developers.google.com/appengine/docs/java/modules/#Java_Uploading%20modules)

Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?module=nbsocialmetrics-frontend&app_id=nbsocialmetrics&version=1&
400 Bad Request
The first module you upload to a new application must be the 'default' module.  Please upload a version of the 'default' module before uploading a version for the 'nbsocialmetrics-frontend' module. See the documentation for more information. Python: (https://developers.google.com/appengine/docs/python/modules/#Python_Uploading%20modules) Java: (https://developers.google.com/appengine/docs/java/modules/#Java_Uploading%20modules)

Please see the logs [/var/folders/dp/v_lw6kqx16bf7743hs5t9phc0000gn/T/appcfg4483555174170807292.log] for further information.
service: my-service