Cannot cast java.util.LinkedHashMap to net.shibboleth.utilities.java.support.service.ReloadableService

Jean-Christophe MARTIN goffiojc at gmail.com
Thu Feb 11 12:26:18 UTC 2021


Hi,
i try to map a customObject-ref but an error occurs :

Cannot cast java.util.LinkedHashMap to
net.shibboleth.utilities.java.support.service.ReloadableService

Could you help me ?

BR

<util:map id="secondFactorMap">
    <entry key="AttributeResolverService" value-ref=
"shibboleth.AttributeResolverService" />
    <entry key="HttpServletRequest"       value-ref=
"shibboleth.HttpServletRequest" />
</util:map>

<bean id="secondFactorScriptResource"
      class="org.springframework.core.io.FileSystemResource"
      c:path="%{idp.home}/scripts/mfa/mfa.js" />

<bean id="secondFactor"
      parent="shibboleth.ContextFunctions.Scripted"
      factory-method="resourceScript"
      p:customObject-ref="secondFactorMap"
      c:resource-ref="secondFactorScriptResource"/>

<util:map id="shibboleth.authn.MFA.TransitionMap">
    <entry key="">
        <bean parent="shibboleth.authn.MFA.Transition" p:nextFlow=
"authn/Password" />
    </entry>
    <entry key="authn/Password">
        <bean parent="shibboleth.authn.MFA.Transition"
p:nextFlowStrategy-ref="secondFactor" />
    </entry>
</util:map>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20210211/19481a27/attachment.htm>


More information about the users mailing list