appengine-web.xml不包含<threadsafe>元素</threadsafe>

时间:2013-12-29 13:02:09

标签: java google-app-engine

使用应用程序引擎java应用程序我收到主题中的错误。

我看过类似的问题,说

<threadsafe>true</threadsafe>

元素应添加到appengine-web.xml中,但我的appengine-web.xml文件是基于app.yaml自动生成的,而here指令不提供任何帮助......

我认为可以使用同一页面中的“自定义XML输出”指令来实现,但它们似乎缺少关于如何实际执行此操作的部分......

2 个答案:

答案 0 :(得分:1)

'threadsafe'选项需要出现在类似'sessions-enabled'选项的地方。我建议在'runtime'行之后在app.yaml中尝试以下附加行:

threadsafe: true

没有记录,如你所说,但'sessions_enabled'对应'会话启用',所以它可能有用。 (“功能!”; - )

答案 1 :(得分:0)

最小样本appengine-web.xml文件如下所示here

<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>_your_app_id_</application>
<version>1</version>
<threadsafe>true</threadsafe>
</appengine-web-app>
相关问题