diff --git a/activemq-core/src/test/java/org/activemq/security/SimpleSecurityBrokerSystemTest.java b/activemq-core/src/test/java/org/activemq/security/SimpleSecurityBrokerSystemTest.java index 4811bef1d3..4e3846ef23 100644 --- a/activemq-core/src/test/java/org/activemq/security/SimpleSecurityBrokerSystemTest.java +++ b/activemq-core/src/test/java/org/activemq/security/SimpleSecurityBrokerSystemTest.java @@ -121,7 +121,7 @@ public class SimpleSecurityBrokerSystemTest extends JmsTestSupport { static { String path = System.getProperty("java.security.auth.login.config"); if( path == null ) { - URL resource = SimpleSecurityBrokerSystemTest.class.getResource("login.config"); + URL resource = SimpleSecurityBrokerSystemTest.class.getClassLoader().getResource("login.config"); if( resource!=null ) { path = resource.getFile(); System.setProperty("java.security.auth.login.config", path);