https://issues.apache.org/bugzilla/show_bug.cgi?id=57129
Bug ID: 57129 Summary: Regression. Load WEB-INF/lib jarfiles in alphabetical order Product: Tomcat 8 Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: j...@jorgenpersson.se When the classpath are created for the webapp classloader, the ordering of the jar files are not the same in Tomcat7 vs Tomcat8. This is due to that in Tomcat7, the FileDirContext.list(File) method sorts the jar files in the WEB-ING/lib folder alpabetically: ... Arrays.sort(names); // Sort alphabetically NamingEntry entry = null; for (int i = 0; i < names.length; i++) { ... The new design in Tomcat8 does not do this. I've identified two places where WEB-INF/lib is read: StandardRoot.list(String, boolean) and DirResourceSet.listWebAppPaths(String) Even though it is not a requirement that the entries are ordered alphabetically, it would be nice if they were. And there is no harm in doing it for web applications that does not depend on classpath ordering. I've attached a patch file, tomcat8.patch, based on tomcat8 trunk (@ rev. 1633538). -- 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