ClassLoader cc = Thread.currentThread().getContextClassLoader();
Thread.currentThread().setContextClassLoader(Jetty.class.getClassLoader());
sl.setHttpServer(hs);
- addContexts(Root.root + "/host", null);
+ addContexts(org.ibex.jinetd.Main.ROOT + "/host", null);
hs.start();
Thread.currentThread().setContextClassLoader(cc);
} catch (Exception e) { Log.error(Main.class, e); }
try {
InetAddress.getByName(host);
Log.info(Main.class, pad + host + " => " + path);
- WebApplicationContext context = hs.addWebApplication(host, "", path);
+ WebApplicationContext context = new WebApplicationContext(path);
+ context.setContextPath("");
+ hs.addContext(host, context);
context.getServletHandler().getHttpContext().setParentClassLoader(Jetty.class.getClassLoader());
context.setClassLoaderJava2Compliant(true);
context.setClassLoader(new TreeClassLoader(webinf, Jetty.class.getClassLoader()));