I have tried to serve simple html documents using embedded Jetty, but I keep getting 404 error. Here's my relevant setup
ResourceHandler resource_handler = new ResourceHandler();
resource_handler.setDirectoriesListed(true);
resource_handler.setWelcomeFiles(new String[] { "index.html" });
resource_handler.setResourceBase(".");
server.setHandler(resource_handler);
As I run this from Eclipse and print out the BaseResource, I'll get my project's workspace directory where I have a simple index.html. However if I try the url http://127.0.0.1:8888/index.html, I'll get a 404 error - what am I missing?