Fix https://bz.apache.org/bugzilla/show_bug.cgi?id=59866 Don't scan WEB-INF/classes/META-INF/resources unnecessarily. Note only the first issue in the bug report applies to 8.0.x.