Unfortunately, it seems we can't use ServletContext.getResourcePaths() to access all the resources from libraries located in WEB-INF/lib.