From 98783c97d14655d7e5acb08d1e6727afc26aa373 Mon Sep 17 00:00:00 2001 From: markt Date: Tue, 9 Mar 2010 12:30:37 +0000 Subject: [PATCH] Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48737 Don't assume paths that start with /META-INF/... are always in JARs. This is not true for some IDEs Patch provided by Fabrizio Giustina git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920840 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/jasper/JspCompilationContext.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/java/org/apache/jasper/JspCompilationContext.java b/java/org/apache/jasper/JspCompilationContext.java index 967c6c0ff..a3a8a4ac1 100644 --- a/java/org/apache/jasper/JspCompilationContext.java +++ b/java/org/apache/jasper/JspCompilationContext.java @@ -294,6 +294,9 @@ public class JspCompilationContext { } if (jarUrl != null) { result = new URL(jarUrl.toExternalForm() + res.substring(1)); + } else { + // May not be in a JAR in some IDE environments + result = context.getResource(canonicalURI(res)); } } else if (res.startsWith("jar:file:")) { // This is a tag file packaged in a jar that is being checked -- 2.11.0