How does one deploy scala or scalatra onto Jetty servlet container? Does anyone have experience or can point me to some resources online?
Asked
Active
Viewed 1,125 times
2 Answers
5
If you're using sbt, run the package
command from within the sbt shell. This will create you a war file in the target dir. You can drop that into jetty's webapps directory and configure a context xml file in its contexts directory.
If you're using maven, I believe the command you want is mvn package
.

Cole Stanfield
- 2,437
- 2
- 19
- 12
0
Are you using Simple Build Tool (SBT) for your project? If you do, it's as easy as running "sbt jetty"
Check it out: http://code.google.com/p/simple-build-tool/

Jeremy Haile
- 136
- 6
-
I would like to deploy it onto a servlet container that's already in use. I know for instance, if I want to add php support to jetty, i can add the quercus jar. So, I'm hoping for a similar solution for scala. Thanks – Joyce Jun 08 '11 at 14:45
-
4Caveat: Running a web app inside sbt should only be used for testing purposes. "sbt jetty" and "deployment" should not appear in the same sentence. – Leif Wickland Dec 14 '12 at 07:01