<div dir="ltr">Hi, all.<br><br>I edited the web.xml for launching the Listener class in Shibboleth IdP v5.0.0 as follows:<br><br><listener><br>    <display-name>ContosoAuthnContextListener</display-name><br>    <listener-class>com.example.idp.shibboleth.contoso.servlet.ContosoAuthnContextListener</listener-class><br></listener><br><br>Then, I received the following error:<br><br>2023-10-20 15:47:11.101:WARN :oejw.WebAppContext:main: Failed startup of context o.e.j.w.WebAppContext@b2c9a9c{Shibboleth Identity Provider,/idp,[file:///opt/jetty-base/tmp/jetty-127_0_0_1-80-idp_war-_idp-any-164522878908199773/webinf/, jar:file:///opt/shibboleth-idp/war/idp.war!/],UNAVAILABLE}{/opt/shibboleth-idp/war/idp.war}<br>java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?<br>at org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:85)<br>...omit...<br><br><br>Subsequently, I added the following content to the web.xml:<br><br><listener><br>    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class><br></listener><br><br>After that, I encountered another error:<br><br>2023-10-20 16:04:26.149:WARN :oejw.WebAppContext:main: Failed startup of context o.e.j.w.WebAppContext@b2c9a9c{Shibboleth Identity Provider,/idp,[file:///opt/jetty-base/tmp/jetty-127_0_0_1-80-idp_war-_idp-any-18363158295659732048/webinf/, jar:file:///opt/shibboleth-idp/war/idp.war!/],UNAVAILABLE}{/opt/shibboleth-idp/war/idp.war}<br>java.lang.IllegalStateException: Cannot initialize context because there is already a root application context present - check whether you have multiple ContextLoader* definitions in your web.xml!<br>at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:247)<br><br>Do you have any solutions to this issue?</div>