Author: markt
Date: Tue Mar 9 12:30:37 2010
New Revision: 920840
URL: http://svn.apache.org/viewvc?rev=920840&view=rev
Log:
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
Modified:
tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java
Modified: tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java?rev=920840&r1=920839&r2=920840&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java (original)
+++ tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java Tue Mar 9
12:30:37 2010
@@ -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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]