Testsuite: org.apache.catalina.startup.TestListener Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.059 sec ------------- Standard Error ----------------- 08-Mar-2024 17:27:14.033 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testServletContainerInitializer] 08-Mar-2024 17:27:14.402 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.38] using APR version [1.6.5]. 08-Mar-2024 17:27:14.403 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [{4}]. 08-Mar-2024 17:27:14.403 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true] 08-Mar-2024 17:27:14.414 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1f 31 Mar 2020] 08-Mar-2024 17:27:15.077 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-127.0.0.1-auto-1"] 08-Mar-2024 17:27:15.111 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 08-Mar-2024 17:27:15.111 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.100-dev] 08-Mar-2024 17:27:15.334 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-127.0.0.1-auto-1-44437"] 08-Mar-2024 17:27:15.402 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-apr-127.0.0.1-auto-1-44437"] 08-Mar-2024 17:27:15.410 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 08-Mar-2024 17:27:15.448 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-apr-127.0.0.1-auto-1-44437"] 08-Mar-2024 17:27:15.458 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-apr-127.0.0.1-auto-1-44437"] 08-Mar-2024 17:27:15.477 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testServletContextListener] 08-Mar-2024 17:27:15.482 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.38] using APR version [1.6.5]. 08-Mar-2024 17:27:15.486 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [{4}]. 08-Mar-2024 17:27:15.486 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true] 08-Mar-2024 17:27:15.487 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1f 31 Mar 2020] 08-Mar-2024 17:27:15.488 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-127.0.0.1-auto-2"] 08-Mar-2024 17:27:15.490 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 08-Mar-2024 17:27:15.491 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.100-dev] 08-Mar-2024 17:27:15.546 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) 08-Mar-2024 17:27:15.557 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 08-Mar-2024 17:27:15.558 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors 08-Mar-2024 17:27:15.578 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-127.0.0.1-auto-2-41015"] 08-Mar-2024 17:27:15.634 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-apr-127.0.0.1-auto-2-41015"] 08-Mar-2024 17:27:15.634 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 08-Mar-2024 17:27:15.638 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-apr-127.0.0.1-auto-2-41015"] 08-Mar-2024 17:27:15.642 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-apr-127.0.0.1-auto-2-41015"] ------------- ---------------- --------------- Testcase: testServletContainerInitializer took 1.802 sec Testcase: testServletContextListener took 0.177 sec