Loiane Groner, Brazilian, works as a Java/ Sencha evangelist. She has 7+ years of experience in web development. She is the ESJUG (Espirito Santo Java Users Group) and CampinasJUG (Campinas Java Users Group) leader and coordinator. Loiane is passionate about technology and programming. Also author of ExtJS 4 First Look book. Loiane is a DZone MVB and is not an employee of DZone and has posted 42 posts at DZone. You can read more from them at their website. View Full User Profile

Running a Web Application on Jetty Webserver from Eclipse IDE

  • submit to reddit

This tutorial will walk you through how to run a web application on Jetty webserver directly from Eclipse.


  1. Install Jetty webserver
  2. Install plugin Run-Jetty-Run on Eclipse

As I mentioned on the tutorials listed above, I am trying to use Jetty instead of Tomcat. In this post, I will show how it is easy to deploy a web applicationon Jetty directly from Eclipse.


1 – Create a Dynamic Web Project (you can right click on the Project Explorer view or go to File -> New…):

2 – Give a name to the project and click on Next:

3 – Click on Next:

4 – Check the option Generate web.xml… and click on Finish:

5 – This is how the project will look like:

6 – Select the project and click on Run Button -> Run Configurations…

7 – Double click on Jetty Webapp. It will create a jetty project configuration under the Jetty Webapp with the project name. Click on Run:

8 – Wait for the server to start:

9 – Test your application!

I also recorded a video with the steps above:

See? It is very simple!

The sample project source code is also available on my github: https://github.com/loiane/test-jetty>

From http://loianegroner.com/2011/07/running-a-web-application-on-jetty-webserver-from-eclipse-ide/

Published at DZone with permission of Loiane Groner, author and DZone MVB.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)