简体   繁体   English

在Tomcat上部署Java Play应用程序?

[英]Deploying Java Play app on Tomcat?

I'm building a Java Play (2.5) application and am struggling to figure out how to deploy this on a Tomcat server. 我正在构建一个Java Play(2.5)应用程序,并且正在努力找出如何在Tomcat服务器上部署它。 Normally I would transfer a .war file to the webapps folder of my server and live happily ever after, however when running 'sbt dist' as shown in the documentation it creates a jar, binary etc but no .war. 通常,我会将.war文件传输到服务器的webapps文件夹中,并从此过着幸福的生活,但是,如文档所示运行“ sbt dist”时,它将创建一个jar,二进制文件等,但没有.war。

Does anyone know an easy way to either get a .war file of the application which I can easily put into the webapps folder, or any other simple way to get my application built and served from a server? 有谁知道一种简单的方法来获取我可以轻松放入webapps文件夹中的应用程序的.war文件,或者通过任何其他简单的方法来构建我的应用程序并从服务器进行服务?

Sorry, my bad! 对不起这是我的错! Play2war is not supporting the 2.5 version of Play (yet) Play2war不支持Play 2.5版本(尚未)
Play 2.5.x : Not supported yet

You better stick to the SBT specific plugins, don't worry SBT is powerful tool but it seems complex at first. 您最好坚持使用SBT特定的插件,不要担心SBT是功能强大的工具,但乍一看似乎很复杂。

This plugin looks good to me for what you need to do: https://github.com/earldouglas/xsbt-web-plugin/blob/master/docs/2.2.md 对于您需要执行的操作,此插件对我来说很不错: https//github.com/earldouglas/xsbt-web-plugin/blob/master/docs/2.2.md

If this also doesn't work, look at all the SBT community plugins that are listed here: http://www.scala-sbt.org/release/docs/Community-Plugins.html 如果仍然无法解决问题,请查看此处列出的所有SBT社区插件: http : //www.scala-sbt.org/release/docs/Community-Plugins.html

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

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