|
24 | 24 |
|
25 | 25 | import javax.servlet.DispatcherType; |
26 | 26 | import javax.servlet.Filter; |
27 | | -import java.io.File; |
28 | 27 | import java.io.IOException; |
29 | 28 | import java.util.ArrayList; |
30 | 29 | import java.util.EnumSet; |
@@ -144,33 +143,11 @@ private Handler getRedirectHandler() { |
144 | 143 | // ------------------------------------------------------------------------- |
145 | 144 |
|
146 | 145 | private void initJSP(WebAppContext ctx) throws IOException { |
147 | | - ctx.setAttribute("org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern", |
148 | | - ".*/[^/]*servlet-api-[^/]*\\.jar$" |
149 | | - + "|.*/javax.servlet.jsp.jstl-.*\\.jar$" |
150 | | - + "|.*/spring-webmvc.*\\.jar$" |
151 | | - + "|.*/.*taglibs.*\\.jar$"); |
152 | | - |
153 | | - ctx.setAttribute("javax.servlet.context.tempdir", getScratchDir()); |
154 | 146 | ctx.setAttribute("org.eclipse.jetty.containerInitializers", jspInitializers()); |
155 | 147 | ctx.setAttribute(InstanceManager.class.getName(), new SimpleInstanceManager()); |
156 | 148 | ctx.addBean(new ServletContainerInitializersStarter(ctx), true); |
157 | 149 | } |
158 | 150 |
|
159 | | - /** |
160 | | - * Establish Scratch directory for the servlet context (used by JSP compilation) |
161 | | - */ |
162 | | - private File getScratchDir() throws IOException { |
163 | | - File tempDir = new File(System.getProperty("java.io.tmpdir")); |
164 | | - File scratchDir = new File(tempDir.toString(), "steve-jetty-jsp"); |
165 | | - |
166 | | - if (!scratchDir.exists()) { |
167 | | - if (!scratchDir.mkdirs()) { |
168 | | - throw new IOException("Unable to create scratch directory: " + scratchDir); |
169 | | - } |
170 | | - } |
171 | | - return scratchDir; |
172 | | - } |
173 | | - |
174 | 151 | /** |
175 | 152 | * Ensure the JSP engine is initialized correctly |
176 | 153 | */ |
|
0 commit comments