diff --git a/adapters/catalina/src/test/java/org/acegisecurity/adapters/catalina/CatalinaAcegiUserRealmTests.java b/adapters/catalina/src/test/java/org/acegisecurity/adapters/catalina/CatalinaAcegiUserRealmTests.java index 05d00b2cd5..cf86a87cee 100644 --- a/adapters/catalina/src/test/java/org/acegisecurity/adapters/catalina/CatalinaAcegiUserRealmTests.java +++ b/adapters/catalina/src/test/java/org/acegisecurity/adapters/catalina/CatalinaAcegiUserRealmTests.java @@ -261,7 +261,7 @@ public class CatalinaAcegiUserRealmTests extends TestCase { throws Exception { CatalinaAcegiUserRealm adapter = new CatalinaAcegiUserRealm(); - URL url = ClassLoader.getSystemResource( + URL url = Thread.currentThread().getContextClassLoader().getResource( "net/sf/acegisecurity/adapters/" + fileName); if (url == null) {