所以我有这个错误,我见过很多人:
appengine-web.xml does not contain a <threadsafe> element.
但始终提供的解决方案是添加
<threadsafe>true</threadsafe>
到appengine-web.xml文件。这是我的appengine-web.xml文件:
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>dummy</application>
<version>1</version>
<threadsafe>true</threadsafe>
<!-- Configure java.util.logging -->
<system-properties>
<property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
</system-properties>
</appengine-web-app>
我仍然得到没有找到线程安全元素的错误吗?
答案 0 :(得分:1)
我认为<threadsafe>true</threadsafe>
需要成为appengine-web.xml
这是我的xml无错误:
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<!--<async-session-persistence enabled="true"/>-->
<threadsafe>true</threadsafe>
<application>dummy</application>
<version>443</version>
<sessions-enabled>true</sessions-enabled>
<inbound-services>
<service>mail</service>
<service>xmpp_message</service>
</inbound-services>
<system-properties>
<property name="com.google.gdata.DisableCookieHandler" value="true"/>
</system-properties>
</appengine-web-app>