Jetty
Maven repository
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<version>9.3.6.v20151106</version>
</dependency>
<!--Java Servlet-->
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-webapp</artifactId>
<version>9.3.6.v20151106</version>
</dependency>
import org.eclipse.jetty.server.Server; import org.eclipse.jetty.servlet.ServletContextHandler; import org.eclipse.jetty.servlet.ServletHolder; import ru.n5g.stepic.webservice.servlets.AllGetRequestsServlet; import static org.eclipse.jetty.servlet.ServletContextHandler.SESSIONS; public class AppMain { public static void main(String[] args) throws Exception { ServletContextHandler context = new ServletContextHandler(SESSIONS); context.addServlet(new ServletHolder(new AllGetRequestsServlet()), "/*"); //AllGetRequestsServlet extents HttpServlet Server server = new Server(8080); server.setHandler(context); server.start(); server.join(); } }