<div dir="ltr"><div class="gmail_quote"><div>Just ran into this issue on Tomcat 9, here is what worked (without using an inline script) :<br></div><div> </div><div><div><bean id="example.checkSecondFactorScript"<br>  class="org.springframework.core.io.FileSystemResource"<br>  c:_0="%{idp.home}/conf/authn/checkSecondFactor.js" /><br>  <br><bean id="checkSecondFactor"<br>  parent="shibboleth.ContextFunctions.Scripted"<br>  factory-method="resourceScript"<br>  c:_0="#{getObject('example.checkSecondFactorScript')}"<br></div><div>  p:customObject-ref="shibboleth.AttributeResolverService"/> </div></div><div><br></div><div>Tom</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">As for the direct work around, that's a bit beyond my current understanding </div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">If it's Tomcat ... the actual direct workaround is a bean to directly instantiate a Filesystem Spring Resource and plug that in instead of using the conversion from String to Resource.</blockquote></div></blockquote></div></div>