<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello</p>
    <p>to start well the new year, I upgraded my IDP to 3.4.2 , it
      worked fine until I added the authn/Shibcas AuthenticationFlow . <br>
    </p>
    <p>When I start the IDP logs complains about an  "<i>I/O </i><i>Exception
        occurred resolving the flow location pattern '/**/*-flow.xml'</i>"</p>
    <p>details: <br>
    </p>
    <p>2019-01-03 10:11:46,128 -  - DEBUG
[net.shibboleth.idp.profile.spring.factory.FlowDefinitionRegistryFactoryBean:240]
      - Registered flow ID 'client-storage/write' using 'ServletContext
      resource
      [/system/flows/client-storage/client-storage-write-flow.xml]'<br>
      2019-01-03 10:11:46,129 -  - WARN
      [net.shibboleth.ext.spring.context.DelimiterAwareApplicationContext:551]
      - Exception encountered during context initialization - cancelling
      refresh attempt:
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name
      'org.springframework.webflow.mvc.servlet.FlowHandlerMapping#0'
      defined in file [/opt/shibboleth-idp/system/conf/mvc-beans.xml]:
      Cannot resolve reference to bean 'flowRegistry' while setting bean
      property 'flowRegistry'; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'flowRegistry' defined in file
      [/opt/shibboleth-idp/system/conf/webflow-config.xml]: Invocation
      of init method failed; nested exception is
      java.lang.IllegalStateException: An I/O Exception occurred
      resolving the flow location pattern '/**/*-flow.xml'<br>
      2019-01-03 10:11:46,133 -  - ERROR
      [org.springframework.web.servlet.DispatcherServlet:502] - Context
      initialization failed<br>
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name
      'org.springframework.webflow.mvc.servlet.FlowHandlerMapping#0'
      defined in file [/opt/shibboleth-idp/system/conf/mvc-beans.xml]:
      Cannot resolve reference to bean 'flowRegistry' while setting bean
      property 'flowRegistry'; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'flowRegistry' defined in file
      [/opt/shibboleth-idp/system/conf/webflow-config.xml]: Invocation
      of init method failed; nested exception is
      java.lang.IllegalStateException: An I/O Exception occurred
      resolving the flow location pattern '/**/*-flow.xml'<br>
          at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)<br>
      Caused by:
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'flowRegistry' defined in file
      [/opt/shibboleth-idp/system/conf/webflow-config.xml]: Invocation
      of init method failed; nested exception is
      java.lang.IllegalStateException: An I/O Exception occurred
      resolving the flow location pattern '/**/*-flow.xml'<br>
          at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1631)<br>
      Caused by: java.lang.IllegalStateException: An I/O Exception
      occurred resolving the flow location pattern '/**/*-flow.xml'<br>
          at
net.shibboleth.idp.profile.spring.factory.FlowDefinitionRegistryFactoryBean.registerFlowLocationPatterns(FlowDefinitionRegistryFactoryBean.java:207)<br>
      Caused by: java.io.FileNotFoundException: ServletContext resource
      [/Shibcas/] cannot be resolved to URL because it does not exist<br>
          at
org.springframework.web.context.support.ServletContextResource.getURL(ServletContextResource.java:156)<br>
      2019-01-03 10:11:46,137 -  - INFO
      [net.shibboleth.idp.authn.impl.RemoteUserAuthServlet:215] -
      RemoteUserAuthServlet will process REMOTE_USER, along with
      attributes [] and headers []<br>
    </p>
    <p>I read about that kind of error <i>"I/O </i><i>Exception... </i><i>location
        pattern '/**/*-flow.xml'" </i>on : <br>
    </p>
    <p><a class="moz-txt-link-freetext" href="http://shibboleth.1660669.n2.nabble.com/Unable-to-find-flow-authn-conditions-on-Windows-IdP-3-2-0-td7621411.html">http://shibboleth.1660669.n2.nabble.com/Unable-to-find-flow-authn-conditions-on-Windows-IdP-3-2-0-td7621411.html</a></p>
    <p><a class="moz-txt-link-freetext" href="https://github.com/Unicon/shib-cas-authn3/issues/14">https://github.com/Unicon/shib-cas-authn3/issues/14</a></p>
    <p><a class="moz-txt-link-freetext" href="https://wiki.shibboleth.net/confluence/display/DEV/2018-07-20">https://wiki.shibboleth.net/confluence/display/DEV/2018-07-20</a></p>
    <p>setting an idp.home (althought it is install in default path) in
      /var/lib/tomcat/webapps/idp/WEB-INF/web.xml <br>
    </p>
    <p> <context-param><br>
              <param-name>idp.home</param-name><br>
              <param-value>/opt/shibboleth-idp</param-value><br>
              </context-param></p>
    <p>did not solved the issue . </p>
    <p>What else can be done, what is the problem ? <br>
    </p>
    <p>Thanks . <br>
    </p>
  </body>
</html>