无法在Google App引擎上部署应用程序:appengine-web.xml不包含元素

当我点击在netbeans中的谷歌应用引擎上部署应用程序时,这些是产生的错误消息。 我告诉你,最初,我输入的密码错误,应用程序无法部署。 但现在,当我点击部署应用程序时,它不会问我电子邮件或密码。

无论如何我如何解决这些错误?

Reading application configuration data... Bad configuration: appengine-web.xml does not contain a  element. See http://code.google.com/appengine/docs/java/config/appconfig.html#Using_Concurrent_Requests for more information. You probably want to enable concurrent requests. Please see the logs [C:\Users\user\AppData\Local\Temp\appcfg6534187344911851576.log] for further information. May 28, 2012 12:35:54 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml INFO: Successfully processed W:/UnderTest/NetbeansCurrent/Guestbook/build/web\WEB-INF/appengine-web.xml May 28, 2012 12:35:54 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml SEVERE: Received exception processing W:/UnderTest/NetbeansCurrent/Guestbook/build/web\WEB-INF/appengine-web.xml com.google.apphosting.utils.config.AppEngineConfigException: appengine-web.xml does not contain a  element. See http://code.google.com/appengine/docs/java/config/appconfig.html#Using_Concurrent_Requests for more information. You probably want to enable concurrent requests. at com.google.apphosting.utils.config.AppEngineWebXmlReader.readAppEngineWebXml(AppEngineWebXmlReader.java:79) at com.google.appengine.tools.admin.Application.(Application.java:139) at com.google.appengine.tools.admin.Application.readApplication(Application.java:225) at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:145) at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:69) at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:65) 

编辑:我在linux中尝试了同样的事情,这次我输入了正确的密码。然后我也得到了以下例外情况:

 May 28, 2012 1:26:51 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml INFO: Successfully processed /home/non-admin/NetBeansProjects/Guestbook/build/web/WEB-INF/appengine-web.xml May 28, 2012 1:26:51 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml SEVERE: Received exception processing /home/non-admin/NetBeansProjects/Guestbook/build/web/WEB-INF/appengine-web.xml com.google.apphosting.utils.config.AppEngineConfigException: appengine-web.xml does not contain a  element. See http://code.google.com/appengine/docs/java/config/appconfig.html#Using_Concurrent_Requests for more information. You probably want to enable concurrent requests. at com.google.apphosting.utils.config.AppEngineWebXmlReader.readAppEngineWebXml(AppEngineWebXmlReader.java:79) at com.google.appengine.tools.admin.Application.(Application.java:139) at com.google.appengine.tools.admin.Application.readApplication(Application.java:225) at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:145) at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:69) at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:65) Bad configuration: appengine-web.xml does not contain a  element. See http://code.google.com/appengine/docs/java/config/appconfig.html#Using_Concurrent_Requests for more information. You probably want to enable concurrent requests. Please see the logs [/tmp/appcfg6804971430427378027.log] for further information. Reading application configuration data... May 28, 2012 1:41:52 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml INFO: Successfully processed /home/non-admin/NetBeansProjects/Guestbook/build/web/WEB-INF/appengine-web.xml May 28, 2012 1:41:52 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml SEVERE: Received exception processing /home/non-admin/NetBeansProjects/Guestbook/build/web/WEB-INF/appengine-web.xml com.google.apphosting.utils.config.AppEngineConfigException: appengine-web.xml does not contain a  element. See http://code.google.com/appengine/docs/java/config/appconfig.html#Using_Concurrent_Requests for more information. You probably want to enable concurrent requests. at com.google.apphosting.utils.config.AppEngineWebXmlReader.readAppEngineWebXml(AppEngineWebXmlReader.java:79) at com.google.appengine.tools.admin.Application.(Application.java:139) at com.google.appengine.tools.admin.Application.readApplication(Application.java:225) at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:145) at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:69) at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:65) Bad configuration: appengine-web.xml does not contain a  element. See http://code.google.com/appengine/docs/java/config/appconfig.html#Using_Concurrent_Requests for more information. You probably want to enable concurrent requests. Please see the logs [/tmp/appcfg8910063489276425896.log] for further information. 

以@alex所说的为基础……

您有第一个错误日志

Bad configuration: appengine-web.xml does not contain a element. See http://code.google.com/appengine/docs/java/config/appconfig.html#Using_Concurrent_Requests for more information.

第一行

Bad configuration: appengine-web.xml does not contain a element.

告诉你什么是错的。 第二行

See http://code.google.com/appengine/docs/java/config/appconfig.html#Using_Concurrent_Requests for more information.

指出要研究的GAE文档的哪一部分来解决您的问题。

我必须承认,错误日志条目非常明确且有用。 我希望更多可以按照这里为你做的例子。 如果你仍然卡住了,请你准确说明你被困在哪?

只需添加

true

你的war / WEB-INF / appengine-web.xml

喜欢这个:

     1 true 

我想你已经将这个threadsafe属性添加到web.xml而不是appengin-web.xml。 确保将其添加到appenginweb.xml。 谢谢。