简体   繁体   English

在Tomcat上运行Play Framework 2.0?

[英]Running Play Framework 2.0 on Tomcat?

I can't find any information about deploying Play Framework 2.0 on Tomcat, is it even possible? 我找不到有关在Tomcat上部署Play Framework 2.0的任何信息,甚至有可能吗? If so, where can I find any info regarding it. 如果是这样,我在哪里可以找到有关它的任何信息。

Sadly, it is not supported in the Play 2.0 release. 遗憾的是,Play 2.0版本不支持该功能。 Looks like the feature got pushed to 2.1, here is the the ticket . 貌似功能推到了2.1,这是门票

Update 更新资料

There is a plugin that aims are war support for Play 2: https://github.com/dlecan/play2-war-plugin/ 有一个插件旨在为Play 2提供战争支持: https//github.com/dlecan/play2-war-plugin/

The Asynchronous IO model is not supported by Servlet 3.0 containers. Servlet 3.0容器不支持异步IO模型。 See post by one of the committers below: 请参阅以下提交者之一的帖子:

"We are experimenting with this right now, however, it looks like what we need is JSR-340 JSR-340: http://jcp.org/en/jsr/detail?id=340 timeline for JSR-340: http://java.net/projects/servlet-spec/lists/users/archive/2012-03/m ... based on the timing it looks unlikely that this will be part of 2.1, so I am changing the milestone to "none"." “我们现在有了这个正确的实验,然而,它看起来像我们需要的是JSR-340 JSR-340: http://jcp.org/en/jsr/detail?id=340时间表JSR-340: HTTP: //java.net/projects/servlet-spec/lists/users/archive/2012-03/m ...根据时间安排,它似乎不太可能成为2.1的一部分,因此我将里程碑更改为“无” “。”

There is a plugin. 有一个插件。

https://github.com/dlecan/play2-war-plugin https://github.com/dlecan/play2-war-plugin

It's not flawless as of now (April 2012) but there is a lot of commits done every day. 截至目前(2012年4月),它还不是完美无缺的,但是每天都有很多提交。

The call for play framework 1.2 is play war myapp -o myapp.war Play框架1.2的调用是play war myapp -o myapp.war

I'd try that in play framework 2, although it's not in the documentation any more. 我会在游戏框架2中尝试这种方法,尽管它已不在文档中。 Unfortunately I can't try if it still works because I don't have play on this machine. 不幸的是,我无法尝试它是否仍然有效,因为我没有在这台机器上玩。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM