Testsuite: org.apache.catalina.startup.TestListener Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.899 sec ------------- Standard Error ----------------- 05-Feb-2024 14:26:19.339 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testServletContainerInitializer] 05-Feb-2024 14:26:19.581 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.38] using APR version [1.6.5]. 05-Feb-2024 14:26:19.581 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [{4}]. 05-Feb-2024 14:26:19.582 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true] 05-Feb-2024 14:26:19.584 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1f 31 Mar 2020] 05-Feb-2024 14:26:20.407 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-127.0.0.1-auto-1"] 05-Feb-2024 14:26:20.483 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Feb-2024 14:26:20.483 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.99-dev] 05-Feb-2024 14:26:20.661 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-127.0.0.1-auto-1-37845"] 05-Feb-2024 14:26:20.719 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-apr-127.0.0.1-auto-1-37845"] 05-Feb-2024 14:26:20.730 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Feb-2024 14:26:20.767 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-apr-127.0.0.1-auto-1-37845"] 05-Feb-2024 14:26:20.775 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-apr-127.0.0.1-auto-1-37845"] 05-Feb-2024 14:26:20.792 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testServletContextListener] 05-Feb-2024 14:26:20.810 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.38] using APR version [1.6.5]. 05-Feb-2024 14:26:20.810 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [{4}]. 05-Feb-2024 14:26:20.810 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true] 05-Feb-2024 14:26:20.810 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1f 31 Mar 2020] 05-Feb-2024 14:26:20.811 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-127.0.0.1-auto-2"] 05-Feb-2024 14:26:20.812 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Feb-2024 14:26:20.812 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.99-dev] 05-Feb-2024 14:26:20.858 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [org.apache.catalina.startup.TestListener$SCL2] java.lang.IllegalArgumentException: Once the first ServletContextListener has been called, no more ServletContextListeners may be added. at org.apache.catalina.core.ApplicationContext.addListener(ApplicationContext.java:1111) at org.apache.catalina.core.ApplicationContext.addListener(ApplicationContext.java:1073) at org.apache.catalina.core.ApplicationContextFacade.addListener(ApplicationContextFacade.java:614) at org.apache.catalina.startup.TestListener$SCL2.contextInitialized(TestListener.java:101) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4441) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4899) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1364) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1354) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) 05-Feb-2024 14:26:20.862 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file 05-Feb-2024 14:26:20.866 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors 05-Feb-2024 14:26:20.882 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-127.0.0.1-auto-2-35355"] 05-Feb-2024 14:26:20.888 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-apr-127.0.0.1-auto-2-35355"] 05-Feb-2024 14:26:20.895 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Feb-2024 14:26:20.896 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-apr-127.0.0.1-auto-2-35355"] 05-Feb-2024 14:26:20.900 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-apr-127.0.0.1-auto-2-35355"] ------------- ---------------- --------------- Testcase: testServletContainerInitializer took 1.727 sec Testcase: testServletContextListener took 0.113 sec