I made an RCP plugin with embedded Jetty as following:
1) In plugin.xml -> Dependencies, I have added the following:
org.eclipse.equinox.http.jetty
org.e
Take a look at setting a context in jetty. You can define it before start your server.
public class OneWebApp
{
public static void main(String[] args) throws Exception
{
String jetty_home = System.getProperty("jetty.home","..");
Server server = new Server(8080);
WebAppContext webapp = new WebAppContext();
webapp.setContextPath("/");
webapp.setWar(jetty_home+"/webapps/test.war");
server.setHandler(webapp);
server.start();
server.join();
}
}