Tuesday, June 15, 2010

Deploying a WAR in Jetty

Here's how to deploy a WAR file in Jetty using the Ubuntu Jetty package:

Install Jetty:
sudo apt-get install jetty -y
edit /etc/default/jetty so the 4th line reads
NO_START=0

To start Jetty:
sudo /etc/init.d/jetty start

To stop Jetty:
sudo /etc/init.d/jetty stop

To list all commands:
/etc/init.d/jetty6 help

To deploy a WAR file, copy it into
/usr/share/jetty/webapps
and restart the server. The root URL of the web app will be http://localhost:8080/warfilename/ where warfilename is the name of your war file.

Links:

4 comments:

Edox said...

simple and clear
you are great

Edox said...

simple and clear
you are great

Anonymous said...

man, you stopped a 2 hours struggle of mine. thanks.

viagra online said...

Thanks for sharing this t post. I'm sure the infrmation is onna be very useful to me and so many persons. I hope you keep posting.