diff --git a/core/src/main/java/hudson/util/MaskingClassLoader.java b/core/src/main/java/hudson/util/MaskingClassLoader.java
index <HASH>..<HASH> 100644
--- a/core/src/main/java/hudson/util/MaskingClassLoader.java
+++ b/core/src/main/java/hudson/util/MaskingClassLoader.java
@@ -23,11 +23,9 @@
  */
 package hudson.util;
 
+import java.io.IOException;
 import java.net.URL;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.List;
+import java.util.*;
 
 /**
  * {@link ClassLoader} that masks a specified set of classes
@@ -82,6 +80,16 @@ public class MaskingClassLoader extends ClassLoader {
         return super.getResource(name);
     }
 
+    @Override
+    public Enumeration<URL> getResources(String name) throws IOException {
+        for (String mask : masksResources) {
+            if(name.startsWith(mask))
+                return null;
+        }
+
+        return super.getResources(name);
+    }
+
     public synchronized void add(String prefix) {
         masksClasses.add(prefix);
         if(prefix !=null){
Contine the JENKINS-<I> ticket: update the getResources as well