|
Re: Starting Jetty server 9.3 from command line to server static content [message #1700580 is a reply to message #1700576] |
Sat, 04 July 2015 05:37 |
|
Since you're not embedding it within an application of your own, you should get the full jetty-distribution download. Its 'bin' directory will contain a rather complex script for running Jetty.
The simplest steps are to make a folder in the unpacked "webapps" directory to represent your web application's static content root, include an empty WEB-INF directory in there, and then to run Jetty with "java -Djetty.port=8080 -jar start.jar". Here's a sample layout once unpacked:
jetty-distribution-9.3.0.v20150612/
jetty-distribution-9.3.0.v20150612/webapps/
jetty-distribution-9.3.0.v20150612/webapps/myapp/
jetty-distribution-9.3.0.v20150612/webapps/myapp/WEB-INF/
jetty-distribution-9.3.0.v20150612/webapps/myapp/index.html
_
Nitin Dahyabhai
Eclipse Web Tools Platform
[Updated on: Sat, 04 July 2015 05:37] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05181 seconds