简体   繁体   中英

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. 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.

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?

Sorry, my bad! Play2war is not supporting the 2.5 version of Play (yet)
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.

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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