|
33 | 33 | import java.io.File; |
34 | 34 | import java.io.IOException; |
35 | 35 | import java.io.PrintWriter; |
36 | | -import javax.servlet.jsp.JspFactory; |
37 | 36 | import org.eclipse.jetty.ee10.annotations.AnnotationConfiguration; |
38 | 37 | import org.eclipse.jetty.ee10.quickstart.QuickStartConfiguration; |
39 | 38 | import org.eclipse.jetty.ee10.servlet.Dispatcher; |
@@ -168,23 +167,7 @@ private org.eclipse.jetty.server.Handler doCreateHandler(AppVersion appVersion) |
168 | 167 | context.setExtractWAR(false); |
169 | 168 | // ensure exception is thrown if context startup fails |
170 | 169 | context.setThrowUnavailableOnStartupException(true); |
171 | | - // for JSP 2.2 |
172 | | - try { |
173 | | - // Use the App Class loader to try to initialize the JSP machinery. |
174 | | - // Not an issue if it fails: it means the app does not contain the JSP jars in WEB-INF/lib. |
175 | | - Class<?> klass = classLoader.loadClass(TOMCAT_SIMPLE_INSTANCE_MANAGER); |
176 | | - Object sim = klass.getConstructor().newInstance(); |
177 | | - context.getServletContext().setAttribute(TOMCAT_INSTANCE_MANAGER, sim); |
178 | | - // Set JSP factory equivalent for: |
179 | | - // JspFactory jspf = new JspFactoryImpl(); |
180 | | - klass = classLoader.loadClass(TOMCAT_JSP_FACTORY); |
181 | | - JspFactory jspf = (JspFactory) klass.getConstructor().newInstance(); |
182 | | - JspFactory.setDefaultFactory(jspf); |
183 | | - Class.forName("org.apache.jasper.compiler.JspRuntimeContext", true, classLoader); |
184 | | - } catch (Throwable t) { |
185 | | - // No big deal, there are no JSPs in the App since the jsp libraries are not inside the |
186 | | - // web app classloader. |
187 | | - } |
| 170 | + |
188 | 171 | SessionsConfig sessionsConfig = appVersion.getSessionsConfig(); |
189 | 172 | EE10SessionManagerHandler.Config.Builder builder = EE10SessionManagerHandler.Config.builder(); |
190 | 173 | if (sessionsConfig.getAsyncPersistenceQueueName() != null) { |
|
0 commit comments