I successfully embedded Jetty on a test application. It can serve files without issues. Now I want to know if it\'s possible for Jetty to serve files that are inside its own
It's pretty simple, if you throw Spring into the equation. And here it goes:
...
WebAppContext webAppContext = new WebAppContext();
webAppContext.setServer(server);
webAppContext.setContextPath("/");
webAppContext.setResourceBase(new ClassPathResource("webapp").getURI().toString());
server.addHandler(webAppContext);
....
That will make jetty find the necessary web resources inside the jar file.