From: markt Date: Wed, 10 Mar 2010 17:35:43 +0000 (+0000) Subject: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48795 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=49d7e608b34e8bcda78e0c6620592fc300b00662;p=tomcat7.0 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 --- 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) {