From 49d7e608b34e8bcda78e0c6620592fc300b00662 Mon Sep 17 00:00:00 2001 From: markt Date: Wed, 10 Mar 2010 17:35:43 +0000 Subject: [PATCH] Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48795 If compilation fails, always try to re-compile the next time around git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@921464 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/jasper/JspCompilationContext.java | 2 ++ java/org/apache/jasper/servlet/JspServletWrapper.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/java/org/apache/jasper/JspCompilationContext.java b/java/org/apache/jasper/JspCompilationContext.java index a3a8a4ac1..888c44cad 100644 --- a/java/org/apache/jasper/JspCompilationContext.java +++ b/java/org/apache/jasper/JspCompilationContext.java @@ -595,6 +595,8 @@ public class JspCompilationContext { } catch (JasperException ex) { // Cache compilation exception jsw.setCompilationException(ex); + // Make sure recompilation is attempted + jsw.setLastModificationTest(-1); throw ex; } catch (Exception ex) { JasperException je = new JasperException( diff --git a/java/org/apache/jasper/servlet/JspServletWrapper.java b/java/org/apache/jasper/servlet/JspServletWrapper.java index 8f16a574c..b06b75c89 100644 --- a/java/org/apache/jasper/servlet/JspServletWrapper.java +++ b/java/org/apache/jasper/servlet/JspServletWrapper.java @@ -202,8 +202,8 @@ public class JspServletWrapper { } if (options.getDevelopment() || firstTime ) { synchronized (this) { - firstTime = false; ctxt.compile(); + firstTime = false; } } else { if (compileException != null) { -- 2.11.0