Testsuite: org.apache.catalina.realm.TestJNDIRealm Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.833 sec ------------- Standard Error ----------------- Jul 10, 2024 7:48:50 PM 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:253) at java.naming/com.sun.jndi.ldap.LdapClient.(LdapClient.java:137) at java.naming/com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1616) at java.naming/com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2848) at java.naming/com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:348) 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:732) 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:2547) at org.apache.catalina.realm.JNDIRealm.open(JNDIRealm.java:2517) at org.apache.catalina.realm.JNDIRealm.get(JNDIRealm.java:2472) at org.apache.catalina.realm.JNDIRealm.startInternal(JNDIRealm.java:2724) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164) at org.apache.catalina.realm.TestJNDIRealm.testErrorRealm(TestJNDIRealm.java:126) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) 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:672) at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) at java.base/java.net.Socket.connect(Socket.java:633) at java.naming/com.sun.jndi.ldap.Connection.createSocket(Connection.java:336) at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:232) ... 45 more Jul 10, 2024 7:48:50 PM 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:253) at java.naming/com.sun.jndi.ldap.LdapClient.(LdapClient.java:137) at java.naming/com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1616) at java.naming/com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2848) at java.naming/com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:348) 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:732) 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:2547) at org.apache.catalina.realm.JNDIRealm.open(JNDIRealm.java:2517) at org.apache.catalina.realm.JNDIRealm.get(JNDIRealm.java:2472) 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:833) 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:672) at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) at java.base/java.net.Socket.connect(Socket.java:633) at java.naming/com.sun.jndi.ldap.Connection.createSocket(Connection.java:336) at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:232) ... 20 more Jul 10, 2024 7:48:50 PM 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:253) at java.naming/com.sun.jndi.ldap.LdapClient.(LdapClient.java:137) at java.naming/com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1616) at java.naming/com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2848) at java.naming/com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:348) 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:732) 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:2547) at org.apache.catalina.realm.JNDIRealm.open(JNDIRealm.java:2517) at org.apache.catalina.realm.JNDIRealm.get(JNDIRealm.java:2472) 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:833) 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:672) at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) at java.base/java.net.Socket.connect(Socket.java:633) at java.naming/com.sun.jndi.ldap.Connection.createSocket(Connection.java:336) at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:232) ... 20 more Jul 10, 2024 7:48:50 PM 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:253) at java.naming/com.sun.jndi.ldap.LdapClient.(LdapClient.java:137) at java.naming/com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1616) at java.naming/com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2848) at java.naming/com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:348) 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:732) 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:2547) at org.apache.catalina.realm.JNDIRealm.open(JNDIRealm.java:2517) at org.apache.catalina.realm.JNDIRealm.get(JNDIRealm.java:2472) 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:833) 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:672) at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) at java.base/java.net.Socket.connect(Socket.java:633) at java.naming/com.sun.jndi.ldap.Connection.createSocket(Connection.java:336) at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:232) ... 20 more ------------- ---------------- --------------- Testcase: testAuthenticateWithUserPassword took 1.725 sec Testcase: testAuthenticateWithoutUserPassword took 0.003 sec Testcase: testAuthenticateWithUserPasswordAndCredentialHandler took 0.007 sec Testcase: testErrorRealm took 0.051 sec