Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2012-11-26 05:56:39 +0000
committerGreg Wilkins2012-11-26 05:57:37 +0000
commit9a4e5f3301aad09659b8d281b5c7d187aaa847f5 (patch)
tree3b0533bf19ba74af2f349e2b452c001badc5da43 /jetty-ant
parent0eeef6ab4ec6c6b6752952e9e6f60640e5dd4956 (diff)
downloadorg.eclipse.jetty.project-9a4e5f3301aad09659b8d281b5c7d187aaa847f5.tar.gz
org.eclipse.jetty.project-9a4e5f3301aad09659b8d281b5c7d187aaa847f5.tar.xz
org.eclipse.jetty.project-9a4e5f3301aad09659b8d281b5c7d187aaa847f5.zip
jetty-9 Added proxy test webapp. Refined no servlet context handling
Diffstat (limited to 'jetty-ant')
-rw-r--r--jetty-ant/src/main/java/org/eclipse/jetty/ant/WebApplicationProxyImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/jetty-ant/src/main/java/org/eclipse/jetty/ant/WebApplicationProxyImpl.java b/jetty-ant/src/main/java/org/eclipse/jetty/ant/WebApplicationProxyImpl.java
index 22fa07d0ff..dc29b1fcfb 100644
--- a/jetty-ant/src/main/java/org/eclipse/jetty/ant/WebApplicationProxyImpl.java
+++ b/jetty-ant/src/main/java/org/eclipse/jetty/ant/WebApplicationProxyImpl.java
@@ -27,6 +27,7 @@ import java.net.URLClassLoader;
import java.util.Iterator;
import java.util.List;
import javax.servlet.Servlet;
+import javax.servlet.ServletContext;
import org.apache.tools.ant.AntClassLoader;
import org.eclipse.jetty.annotations.AnnotationConfiguration;
@@ -141,7 +142,7 @@ public class WebApplicationProxyImpl implements WebApplicationProxy
{
//super.initJspServlet();
- ContextHandler ch = ((ContextHandler.Context)getServletHandler().getServletContext()).getContextHandler();
+ ContextHandler ch = ContextHandler.getContextHandler(getServletHandler().getServletContext());
/* Set the webapp's classpath for Jasper */
ch.setAttribute("org.apache.catalina.jsp_classpath", ch.getClassPath());

Back to the top