How to deploy my web application to jetty9 as root application?

In Jetty 6, if you had
${jetty.home}/contexts/myapp.xml

With Jetty 9.0, move it to
${jetty.home}/webapps/myapp.xml

With Jetty 9.1+, move it to
${jetty.base}/webapps/myapp.xml

Make sure the exploded webapp directory is the same name as your xml file to prevent double deployment.
You also need to change your Context XML File for Jetty 9.
/ /webapps/myapp

Or alternatively, just name your exploded webapp directory
${jetty.home}/webapps/ROOT

Documentation found:
http://www.eclipse.org/jetty/documentation/current/configuring-deployment.html
Updated for Jetty 9.1

你可能感兴趣的:(How to deploy my web application to jetty9 as root application?)