Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running jetty from eclipse

Tags:

eclipse

jetty

Please let me know how can I configure jetty server to run from eclipse IDE? Also, suggest me some good plugins for the same. I downloaded jetty launcher but not able create new configuration with it. Please help.

like image 741
Newbie Avatar asked Jul 19 '10 12:07

Newbie


People also ask

How do you launch a Jetty?

To start Jetty, switch on the command line to the installation directory and issue the following command. To stop Jetty press Ctrl + C . To start Jetty as Windows service you can use Apache Procrun.

How do you stop a Jetty server in eclipse?

BTW, as to your question in title: mvn jetty:stop fails for you (see also manual for stopPort and stopKey )? By the way. I solved my problem. after a little searching i got run-jetty-run (code.google.com/p/run-jetty-run) for eclipse.

What is embedded Jetty?

Put another way, running Jetty in embedded mode means putting an HTTP module into your application, rather than putting your application into an HTTP server.


2 Answers

The best way I found to run Jetty from eclipse (and debug, etc.) was this : http://neelzone.wordpress.com/2007/06/18/jetty-and-eclipse-integration/

Basically, you create a java project, put jetty's code in it, create a context file in jetty/contexts that points to your web application, and Run as Java application.

No need for a plugin.

like image 165
alci Avatar answered Nov 17 '22 01:11

alci


With Eclipse Kepler, I found two plugins, "Eclipse Jetty" and "Run Jetty Run" in the market place.

I tried "Run Jetty Run" first but couldn't make it work (css file didn't load), but with "Eclipse Jetty", it worked out of the box for my project.

like image 28
hshib Avatar answered Nov 16 '22 23:11

hshib