|
@@ -242,10 +242,7 @@ public class WebApps {
|
|
|
for(Map.Entry<String, Object> entry : attributes.entrySet()) {
|
|
|
server.setAttribute(entry.getKey(), entry.getValue());
|
|
|
}
|
|
|
- String webAppPath = "/" + name + "/*";
|
|
|
- server.defineFilter(server.getWebAppContext(), "guice",
|
|
|
- GuiceFilter.class.getName(), null, new String[] { webAppPath, "/" });
|
|
|
-
|
|
|
+ server.addGlobalFilter("guice", GuiceFilter.class.getName(), null);
|
|
|
webapp.setConf(conf);
|
|
|
webapp.setHttpServer(server);
|
|
|
server.start();
|