Running Play Framework 2.0 on Tomcat?

浪子不回头ぞ 提交于 2020-01-10 17:45:56

问题


I can't find any information about deploying Play Framework 2.0 on Tomcat, is it even possible? If so, where can I find any info regarding it.


回答1:


Sadly, it is not supported in the Play 2.0 release. Looks like the feature got pushed to 2.1, here is the the ticket.

Update

There is a plugin that aims are war support for Play 2: https://github.com/dlecan/play2-war-plugin/




回答2:


The Asynchronous IO model is not supported by Servlet 3.0 containers. 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"."




回答3:


There is a 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.




回答4:


The call for play framework 1.2 is play war myapp -o myapp.war

I'd try that in play framework 2, although it's not in the documentation any more. Unfortunately I can't try if it still works because I don't have play on this machine.



来源:https://stackoverflow.com/questions/9737562/running-play-framework-2-0-on-tomcat

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!