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