From bc285fce91bb20df835716c2219efb7908ed47d9 Mon Sep 17 00:00:00 2001 From: Ben Alex Date: Wed, 23 Jun 2004 05:49:38 +0000 Subject: [PATCH] Correct issue with unit test under Windows introduced with Linux fix. --- .../adapters/catalina/CatalinaAcegiUserRealm.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/adapters/catalina/src/main/java/org/acegisecurity/adapters/catalina/CatalinaAcegiUserRealm.java b/adapters/catalina/src/main/java/org/acegisecurity/adapters/catalina/CatalinaAcegiUserRealm.java index fd12ffa005..d79651245d 100644 --- a/adapters/catalina/src/main/java/org/acegisecurity/adapters/catalina/CatalinaAcegiUserRealm.java +++ b/adapters/catalina/src/main/java/org/acegisecurity/adapters/catalina/CatalinaAcegiUserRealm.java @@ -30,6 +30,8 @@ import org.apache.commons.logging.LogFactory; import org.springframework.context.support.FileSystemXmlApplicationContext; +import org.springframework.core.io.ResourceLoader; + import java.io.File; import java.io.IOException; @@ -234,7 +236,7 @@ public class CatalinaAcegiUserRealm extends RealmBase { } FileSystemXmlApplicationContext ctx = new FileSystemXmlApplicationContext( - "file://" + xml.getAbsolutePath()); + "file:" + xml.getAbsolutePath()); Map beans = ctx.getBeansOfType(AuthenticationManager.class, true, true); if (beans.size() == 0) {