ctx = (Context) ic.lookup("java:comp/env");
} catch (NamingException ne) {
throw Throwables.propagate(ne);
}
return Guice.createInjector(new ServletModule() {
@Override
protected void configureServlets() {
serve("/gwtRequest").with(GuiceRequestFactoryServlet.class);
bind(ExceptionHandler.class).to(DefaultExceptionHandler.class);