The following describes a number of simple steps to set up and start up a web server in the eclipse PDE environment.
- Create a new OSGi run configuration
- Add the package org.eclipse.equinox.http.jetty
- Click on „Add Required Bundles“
A number of bundles should have been added to your run configuration.
- Go to the tab arguments and add the VM argument: „ -Dorg.osgi.service.http.port=8080“
Now you should be able to start up the server by starting the run configuration. You can check if the server is running by opening the URL http://localhost:8080/. It should show an error message as the following:
Building a server based Application with Equinox (on eclipse.org): http://www.eclipse.org/equinox-portal/tutorials/server-side/
Building a web server in Felix by using wars: http://heapdump.wordpress.com/2010/03/25/osgi-enabled-war/
Alternative way: starting Equinox as deployed application on a web server and let this bundle load osgi modules: http://angelozerr.wordpress.com/2010/09/01/osgi-equinox-in-a-servlet-container-step1/
Scroll down to Server-Side
The core bundle to start server
Equinox Server Side info: http://www.eclipse.org/equinox/server/http_quickstart.php
Slides giving a good overview: