Failed to deploy the application in the Google engine: appengine-web.xml does not contain the <threadsafe> element

When I click to deploy the application in the Google engine to netbeans, these are error messages. Let me tell you that initially, maybe I entered the wrong password and the application could not be deployed. But now, when I click to deploy the application, it does not ask me by email or password.

Anyway, how can I fix these errors?

Reading application configuration data... Bad configuration: appengine-web.xml does not contain a <threadsafe> 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 <threadsafe> 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.<init>(Application.java:139) at com.google.appengine.tools.admin.Application.readApplication(Application.java:225) at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:145) at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:69) at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:65) 

EDIT: I tried the same thing on linux, and this time I entered the correct password. Then I also get exceptions that:

 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 <threadsafe> 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.<init>(Application.java:139) at com.google.appengine.tools.admin.Application.readApplication(Application.java:225) at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:145) at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:69) at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:65) Bad configuration: appengine-web.xml does not contain a <threadsafe> 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 <threadsafe> 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.<init>(Application.java:139) at com.google.appengine.tools.admin.Application.readApplication(Application.java:225) at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:145) at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:69) at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:65) Bad configuration: appengine-web.xml does not contain a <threadsafe> 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. 
+8
java google-app-engine exception netbeans
source share
3 answers

To build on what @alex said ....

Your first error log has

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

First line

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

tells you what is wrong. Second line

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

indicates which part of the GAE documentation should be examined to correct your problem.

I must admit, the error log entries are very clear and useful. I would like more to follow the example made for you here. If you are still stuck, could you please indicate exactly what you are stuck with?

+10
source share

Just add

<threadsafe>true</threadsafe>

to his war / WEB -INF / appengine-web.xml

Like this:

  <?xml version="1.0" encoding="UTF-8"?> <appengine-web-app xmlns="http://appengine.google.com/ns/1.0"> <application></application> <version>1</version> <threadsafe>true</threadsafe> 
+7
source share

I think you added this threadafe property to web.xml instead of appengin-web.xml. Make sure it is added in appenginweb.xml. Thanks.

+1
source share

All Articles