https://bz.apache.org/bugzilla/show_bug.cgi?id=63970
Bug ID: 63970 Summary: java.lang.ClassCastException: org.apache.catalina.webresources.CachedResource$Cached ResourceURLConnection cannot be cast to java.net.JarURLConnection Product: Tomcat 8 Version: 8.5.49 Hardware: PC OS: Mac OS X 10.1 Status: NEW Severity: normal Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: dmitry.tresku...@jetbrains.com Target Milestone: ---- The following code starts throwing a ClassCastException after upgrading to Tomcat 8.5.49: URL url = this.getClass().getResource("/preset.propetries"); String scheme = url.getProtocol(); if ("jar".equals(scheme)) { JarURLConnection con = (JarURLConnection) url.openConnection(); } I guess it happens because of this commit https://github.com/apache/tomcat/commit/03e7bc8487cb706adf1f56586948a7762dd42d14#diff-b718dcafc40f187cc9aaa1518e63033d -- 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