Author: remm
Date: Wed Oct 29 16:00:32 2014
New Revision: 1635185
URL: http://svn.apache.org/r1635185
Log:
r1003589 introduces a change of behavior where a missing JSP in jsp-file now
throws an exception on init. This is apparently not the right behavior
(although it is perfectly legitimate too).
Modified:
tomcat/trunk/java/org/apache/jasper/servlet/JspServlet.java
tomcat/trunk/webapps/docs/changelog.xml
Modified: tomcat/trunk/java/org/apache/jasper/servlet/JspServlet.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/servlet/JspServlet.java?rev=1635185&r1=1635184&r2=1635185&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/servlet/JspServlet.java (original)
+++ tomcat/trunk/java/org/apache/jasper/servlet/JspServlet.java Wed Oct 29
16:00:32 2014
@@ -120,7 +120,7 @@ public class JspServlet extends HttpServ
jspFile = config.getInitParameter("jspFile");
try {
if (null == context.getResource(jspFile)) {
- throw new ServletException("missing jspFile: [" + jspFile
+ "]");
+ return;
}
} catch (MalformedURLException e) {
throw new ServletException("Can not locate jsp file", e);
Modified: tomcat/trunk/webapps/docs/changelog.xml
URL:
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1635185&r1=1635184&r2=1635185&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Wed Oct 29 16:00:32 2014
@@ -263,6 +263,10 @@
the case where the source object is an array of primitives.
(markt/kkolinko)
</fix>
+ <fix>
+ Do not throw an exception on missing JSP file servlet initialization.
+ (remm)
+ </fix>
</changelog>
</subsection>
<subsection name="Cluster">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]