https://bz.apache.org/bugzilla/show_bug.cgi?id=61503
Bug ID: 61503 Summary: JarWarResourceSet finds META-INF/ jar entries that do not exist leading to FileNotFoundException Product: Tomcat 8 Version: 8.5.14 Hardware: PC OS: All Status: NEW Severity: normal Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: awilkin...@pivotal.io Target Milestone: ---- I believe that the fix for https://bz.apache.org/bugzilla/show_bug.cgi?id=60940 has introduced a regression. When a JSF-based application is run from a war archive (either using unpackWARs=false or Tomcat embedded in an executable war with Spring Boot) the application will fail to start if it depends on H2. The failure occurs because H2's jar file does not contain a META-INF/ directory entry; it only contains entries for the two files beneath the directory. This leads to a FileNotFoundException when calling getJarFile() on the connection to the URL for the resource: Caused by: java.io.FileNotFoundException: JAR entry META-INF/ not found in /var/folders/zq/v6xkr2696kv05jbf3bddt9680000gn/T/jar_cache4058734571815148022.tmp at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:142) ~[na:1.8.0_141] at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:89) ~[na:1.8.0_141] at com.sun.faces.facelets.util.Classpath.search(Classpath.java:145) ~[jsf-impl-2.2.7.jar!/:2.2.7] at com.sun.faces.facelets.util.Classpath.search(Classpath.java:109) ~[jsf-impl-2.2.7.jar!/:2.2.7] at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.loadURLs(MetaInfFacesConfigResourceProvider.java:164) ~[jsf-impl-2.2.7.jar!/:2.2.7] at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.getResources(MetaInfFacesConfigResourceProvider.java:108) ~[jsf-impl-2.2.7.jar!/:2.2.7] ... 15 common frames omitted A sample application that reproduces the problem is available in this Spring Boot issue: https://github.com/spring-projects/spring-boot/issues/10232 -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org