git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@940405
13f79535-47bb-0310-9956-
ffa450edef68
// Check the alternate locations
for (DirContext altDirContext : altDirContexts) {
- obj = altDirContext.lookup("META-INF/resources/" + name);
- if (obj != null)
- return obj;
+ try {
+ obj = altDirContext.lookup("META-INF/resources/" + name);
+ if (obj != null)
+ return obj;
+ } catch ( NamingException ex) {
+ // ignore
+ }
}
// Really not found
tomcat.start();
assertPageContains("/test/getresource?path=/resourceF.jsp",
- "<p>resourceF.jsp in the web application</p>");
+ "<p>resourceF.jsp in resources2.jar</p>");
assertPageContains("/test/getresource?path=/resourceA.jsp",
"<p>resourceA.jsp in the web application</p>");
assertPageContains("/test/getresource?path=/resourceB.jsp",