lib/buildr/jetty/JettyWrapper.java in buildr-1.2.5 vs lib/buildr/jetty/JettyWrapper.java in buildr-1.2.6

- old
+ new

@@ -3,10 +3,11 @@ import org.mortbay.jetty.Handler; import org.mortbay.jetty.handler.AbstractHandler; import org.mortbay.jetty.handler.ContextHandler; import org.mortbay.jetty.handler.ContextHandlerCollection; import org.mortbay.jetty.webapp.WebAppContext; +import org.mortbay.jetty.webapp.WebAppClassLoader; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.ServletException; import java.io.IOException; @@ -72,9 +73,11 @@ context = new WebAppContext(webapp, path); context.setConfigurationClasses(new String[] { "org.mortbay.jetty.webapp.WebInfConfiguration", "org.mortbay.jetty.webapp.WebXmlConfiguration"}); + context.setClassLoader(new WebAppClassLoader(context)); + _handlerColl.addHandler(context); context.start(); _apps.put(path, context); response.getWriter().println("Deployed"); response.getWriter().println(context.getTempDirectory());