handler.addServlet(DefaultServlet.class, "/");
handler.addFilter(GuiceFilter.class, "/*", null);
handler.addEventListener(new GuiceServletContextListener() {
@Override
protected Injector getInjector() {
return Guice.createInjector(new ServletModule() {
@Override
protected void configureServlets() {
//need some kind of servlet to report a success
serve("/*").with(SomeServlet.class);
}