Testsuite: org.apache.catalina.realm.TestJNDIRealm Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.356 sec ------------- Standard Error ----------------- Feb 16, 2024 11:54:04 AM org.apache.catalina.realm.JNDIRealm startInternal SEVERE: Exception opening directory server connection javax.naming.CommunicationException: 127.0.0.1:12345 [Root exception is java.net.ConnectException: Connection refused] at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:258) at java.naming/com.sun.jndi.ldap.LdapClient.(LdapClient.java:144) at java.naming/com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1656) at java.naming/com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2859) at java.naming/com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:351) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxFromUrl(LdapCtxFactory.java:229) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:189) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:247) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:154) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:84) at java.naming/javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:520) at java.naming/javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305) at java.naming/javax.naming.InitialContext.init(InitialContext.java:236) at java.naming/javax.naming.InitialContext.(InitialContext.java:208) at java.naming/javax.naming.directory.InitialDirContext.(InitialDirContext.java:130) at org.apache.catalina.realm.JNDIRealm.createDirContext(JNDIRealm.java:2556) at org.apache.catalina.realm.JNDIRealm.open(JNDIRealm.java:2526) at org.apache.catalina.realm.JNDIRealm.get(JNDIRealm.java:2481) at org.apache.catalina.realm.JNDIRealm.startInternal(JNDIRealm.java:2733) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171) at org.apache.catalina.realm.TestJNDIRealm.testErrorRealm(TestJNDIRealm.java:126) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:50) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:535) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1197) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1042) Caused by: java.net.ConnectException: Connection refused at java.base/sun.nio.ch.Net.pollConnect(Native Method) at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682) at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) at java.base/java.net.Socket.connect(Socket.java:752) at java.naming/com.sun.jndi.ldap.Connection.createConnectionSocket(Connection.java:338) at java.naming/com.sun.jndi.ldap.Connection.createSocket(Connection.java:290) at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:237) ... 43 more Feb 16, 2024 11:54:05 AM org.apache.catalina.realm.JNDIRealm authenticate SEVERE: Exception performing authentication javax.naming.CommunicationException: 127.0.0.1:12345 [Root exception is java.net.ConnectException: Connection refused] at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:258) at java.naming/com.sun.jndi.ldap.LdapClient.(LdapClient.java:144) at java.naming/com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1656) at java.naming/com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2859) at java.naming/com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:351) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxFromUrl(LdapCtxFactory.java:229) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:189) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:247) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:154) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:84) at java.naming/javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:520) at java.naming/javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305) at java.naming/javax.naming.InitialContext.init(InitialContext.java:236) at java.naming/javax.naming.InitialContext.(InitialContext.java:208) at java.naming/javax.naming.directory.InitialDirContext.(InitialDirContext.java:130) at org.apache.catalina.realm.JNDIRealm.createDirContext(JNDIRealm.java:2556) at org.apache.catalina.realm.JNDIRealm.open(JNDIRealm.java:2526) at org.apache.catalina.realm.JNDIRealm.get(JNDIRealm.java:2481) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:1151) at org.apache.catalina.realm.TestJNDIRealm.lambda$testErrorRealm$0(TestJNDIRealm.java:129) at java.base/java.lang.Thread.run(Thread.java:1570) Caused by: java.net.ConnectException: Connection refused at java.base/sun.nio.ch.Net.pollConnect(Native Method) at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682) at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) at java.base/java.net.Socket.connect(Socket.java:752) at java.naming/com.sun.jndi.ldap.Connection.createConnectionSocket(Connection.java:338) at java.naming/com.sun.jndi.ldap.Connection.createSocket(Connection.java:290) at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:237) ... 20 more Feb 16, 2024 11:54:05 AM org.apache.catalina.realm.JNDIRealm authenticate SEVERE: Exception performing authentication javax.naming.CommunicationException: 127.0.0.1:12345 [Root exception is java.net.ConnectException: Connection refused] at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:258) at java.naming/com.sun.jndi.ldap.LdapClient.(LdapClient.java:144) at java.naming/com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1656) at java.naming/com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2859) at java.naming/com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:351) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxFromUrl(LdapCtxFactory.java:229) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:189) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:247) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:154) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:84) at java.naming/javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:520) at java.naming/javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305) at java.naming/javax.naming.InitialContext.init(InitialContext.java:236) at java.naming/javax.naming.InitialContext.(InitialContext.java:208) at java.naming/javax.naming.directory.InitialDirContext.(InitialDirContext.java:130) at org.apache.catalina.realm.JNDIRealm.createDirContext(JNDIRealm.java:2556) at org.apache.catalina.realm.JNDIRealm.open(JNDIRealm.java:2526) at org.apache.catalina.realm.JNDIRealm.get(JNDIRealm.java:2481) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:1151) at org.apache.catalina.realm.TestJNDIRealm.lambda$testErrorRealm$1(TestJNDIRealm.java:130) at java.base/java.lang.Thread.run(Thread.java:1570) Caused by: java.net.ConnectException: Connection refused at java.base/sun.nio.ch.Net.pollConnect(Native Method) at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682) at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) at java.base/java.net.Socket.connect(Socket.java:752) at java.naming/com.sun.jndi.ldap.Connection.createConnectionSocket(Connection.java:338) at java.naming/com.sun.jndi.ldap.Connection.createSocket(Connection.java:290) at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:237) ... 20 more Feb 16, 2024 11:54:05 AM org.apache.catalina.realm.JNDIRealm authenticate SEVERE: Exception performing authentication javax.naming.CommunicationException: 127.0.0.1:12345 [Root exception is java.net.ConnectException: Connection refused] at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:258) at java.naming/com.sun.jndi.ldap.LdapClient.(LdapClient.java:144) at java.naming/com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1656) at java.naming/com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2859) at java.naming/com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:351) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxFromUrl(LdapCtxFactory.java:229) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:189) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:247) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:154) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:84) at java.naming/javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:520) at java.naming/javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305) at java.naming/javax.naming.InitialContext.init(InitialContext.java:236) at java.naming/javax.naming.InitialContext.(InitialContext.java:208) at java.naming/javax.naming.directory.InitialDirContext.(InitialDirContext.java:130) at org.apache.catalina.realm.JNDIRealm.createDirContext(JNDIRealm.java:2556) at org.apache.catalina.realm.JNDIRealm.open(JNDIRealm.java:2526) at org.apache.catalina.realm.JNDIRealm.get(JNDIRealm.java:2481) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:1151) at org.apache.catalina.realm.TestJNDIRealm.lambda$testErrorRealm$2(TestJNDIRealm.java:131) at java.base/java.lang.Thread.run(Thread.java:1570) Caused by: java.net.ConnectException: Connection refused at java.base/sun.nio.ch.Net.pollConnect(Native Method) at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682) at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) at java.base/java.net.Socket.connect(Socket.java:752) at java.naming/com.sun.jndi.ldap.Connection.createConnectionSocket(Connection.java:338) at java.naming/com.sun.jndi.ldap.Connection.createSocket(Connection.java:290) at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:237) ... 20 more ------------- ---------------- --------------- Testcase: testAuthenticateWithUserPassword took 1.096 sec Testcase: testAuthenticateWithoutUserPassword took 0.002 sec Testcase: testAuthenticateWithUserPasswordAndCredentialHandler took 0.003 sec Testcase: testErrorRealm took 0.143 sec