How do I programmatically configure Jetty that I can use Servlet Annotations? If you doing just servlets with jetty, this article could be interesting for you. I show you how I did it. Here comes the configuration: [code] … server = new Server(port); server.addBean(LOG); WebAppContext webAppContext = new WebAppContext(); webAppContext.setContextPath("/"); String webxmlLocation = JettyServer.class.getResource("/webapp/WEB-INF/web.xml").toString(); webAppContext.setDescriptor(webxmlLocation); …