开发者

Which Jetty distribution to download to run a full blown Spring3.0 app?

I have noticed, that as of V7.x, there are two stand-alone distributions of Jetty. A Codehouse and an Eclipse distribution. Which one开发者_如何转开发 do I need to download if I want to run a full-blown Spring 3.0 (incl. Spring MVC/Webflow/Security, Annotations, Hiberate, REST, JSF, Comet ...) application? How to add missing depedencies?

Since I would like to run Jetty stand-alone, please no maven suggestions.


First, I don't understand why you leave out maven. There is a maven jetty plugin for example.

As for the dependencies - well, add them to WEB-INF/lib. Or let maven build your .war file by specifying <packaging>war</packaging> in your pom.xml. All the maven dependencies will be filled in the WEB-INF/lib folder.

Back to the question title - Eclipse's distribution is, as it seems, based on OSGi. If you are not familiar with OSGi, go for the codehaus edition.


the Jetty@eclipse is the core Jetty Web Server:

*  Core Jetty Web Server (HTTP & Websocket)
* Core Jetty Servlet Container
* JNDI, JMX, OSGi, JASPI modules
* HTTP Client 

the Jetty@codehaus also supports EE features such as JSP, spring etc:

*  Hightide Application Server (Jetty WebServer plus EE features)
* Jetty with non-eclipse modules: JSP, spring, terracotta, openspaces, etc.
* Jetty Maven plugin
* debian, RPM distributions
* Older jetty releases 

From my experience its best to add dependencies to the pom.xml, and build with maven using mvn jetty:run


You can use maven to set up a functional environment with all possible jars included. You can then handpick those you actually need and leave out those you don't.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜