I would like to create a standalone jar with an embedded jetty. So I have a main method which creates a WebAppContext The web.xml is located in src/main/webapp/WEB-INF):
...
val web = new WebAppContext("src/main/webapp", "/")
...
Now I wonder how to easily create a fatjar and what’s the best way to do it to get my app load the web.xml. Should I copy the WEB-INF folder directly in the root dir of the jar like it is done by a war? Or should I better create a standalone war instead of a jar. What are your thoughts about that?
ah, ok thx. Actually I just switched to socko which uses netty. In that constellation I don’t need a web.xml and all that stuff any more and can easily use the installApp task. But thx for your reply. Btw you wrote ‘If you truly want to embed Jetty…’ what would be your advice instead to get a simple scala rest app running standalone?