文章参考http://jimichan.iteye.com/blog/6011561 download

jettyJetty-7 eclipse1.5-HTTP/1.1 RFC26162.52.1Stableorg.eclipse.jettyurl: http://mirrors.ustc.edu.cn/eclipse/jetty/stable-8/dist/版本jetty-distribution-8.0.4.v20111024.zip然后解压:D:\jetty在解压目录中执行D:\jetty\jetty-distribution-8.0.4.v20111024>java -jar start.jar etc/jetty.xml会输出WARN: Argument 'etc/jetty.xml' specified multiple times. Check start.ini?Use "java -jar start.jar --help" for more information.2012-02-01 19:44:43.681:INFO:oejs.Server:jetty-8.0.4.v201110242012-02-01 19:44:43.702:INFO:oejdp.ScanningAppProvider:Deployment monitor D:\jety\jetty-distribution-8.0.4.v20111024\webapps at interval 12012-02-01 19:44:43.707:INFO:oejdp.ScanningAppProvider:Deployment monitor D:\jety\jetty-distribution-8.0.4.v20111024\contexts at interval 12012-02-01 19:44:43.712:INFO:oejd.DeploymentManager:Deployable added: D:\jetty\etty-distribution-8.0.4.v20111024\contexts\test.xml2012-02-01 19:44:43.778:INFO:oejw.WebInfConfiguration:Extract jar:file:/D:/jett/jetty-distribution-8.0.4.v20111024/webapps/test.war!/ to C:\Users\kinfinger\ApData\Local\Temp\jetty-0.0.0.0-8080-test.war-_-any-\webapp2012-02-01 19:44:44.644:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext/,file:/C:/Users/kinfinger/AppData/Local/Temp/jetty-0.0.0.0-8080-test.war-_-any/webapp/},D:\jetty\jetty-distribution-8.0.4.v20111024/webapps/test.war2012-02-01 19:44:44.646:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext/,file:/C:/Users/kinfinger/AppData/Local/Temp/jetty-0.0.0.0-8080-test.war-_-any/webapp/},D:\jetty\jetty-distribution-8.0.4.v20111024/webapps/test.war2012-02-01 19:44:44.647:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext/,file:/C:/Users/kinfinger/AppData/Local/Temp/jetty-0.0.0.0-8080-test.war-_-any/webapp/},D:\jetty\jetty-distribution-8.0.4.v20111024/webapps/test.war2012-02-01 19:44:44.648:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext/,file:/C:/Users/kinfinger/AppData/Local/Temp/jetty-0.0.0.0-8080-test.war-_-any/webapp/},D:\jetty\jetty-distribution-8.0.4.v20111024/webapps/test.war2012-02-01 19:44:44.649:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext/,file:/C:/Users/kinfinger/AppData/Local/Temp/jetty-0.0.0.0-8080-test.war-_-any/webapp/},D:\jetty\jetty-distribution-8.0.4.v20111024/webapps/test.war2012-02-01 19:44:44.749:INFO:oejhs.SslContextFactory:No keystore or trust storeconfigured.

ACCEPTING UNTRUSTED CERTIFICATES!!!!!2012-02-01 19:44:44.912:INFO:oejs.TransparentProxy:TransparentProxy @ /javadoc-roxy to http://download.eclipse.org/jetty/stable-8/apidocs2012-02-01 19:44:44.914:INFO:oejd.DeploymentManager:Deployable added: D:\jetty\etty-distribution-8.0.4.v20111024\contexts\javadoc.xml2012-02-01 19:44:44.925:INFO:oejs.AbstractConnector:Started SelectChannelConnecor@0.0.0.0:8080 STARTING2012-02-01 19:44:44.931:INFO:oejs.AbstractConnector:Started SelectChannelConnecor@0.0.0.0:8080 STARTING在执行这步之前你要确保自己安装了JDK。etc/jetty.xml,它实际指向一个服务配置文件,该文件是用来设置jetty服务启动的系统配置信息。比如监听端口,发布某个目录下面的web应用,jndi的配置等等http://localhost:8080/ 就会看到结果

快照源:http://blog.chinaunix.net/uid-22334392-id-3063741.html