Merge remote-tracking branch 'origin/jetty-12.0.x-fix-jspinit' into jetty-12.0.x

This commit is contained in:
Jan Bartel 2022-06-02 13:03:29 +10:00
commit d9dafa08f0
1 changed files with 1 additions and 8 deletions

View File

@ -648,19 +648,12 @@ public class ServletHolder extends Holder<Servlet> implements Comparable<Servlet
}
}
private ContextHandler getContextHandler(ServletContext servletContext)
{
if (servletContext instanceof ContextHandler.Context)
return ((ContextHandler.Context)servletContext).getContextHandler();
return null;
}
/**
* @throws Exception if unable to init the JSP Servlet
*/
protected void initJspServlet() throws Exception
{
ContextHandler ch = getContextHandler(getServletHandler().getServletContext());
ContextHandler ch = getServletHandler().getServletContextHandler();
if (ch == null)
throw new IllegalStateException();
String classpath = ""; //ch.getClassPath(); todo: fix this