Loading attribute-filter.xml from HTTP resource

Joel Levin joel.aaron.levin at gmail.com
Mon Jan 30 17:49:08 EST 2017


I have the following set up in the services.xml -- for leading of
attribute-filter.xml (+ attribute-resolver.xml) from a remote HTTP server.

Firewall okay and checked via CURL on the IdP server.

But getting error message below in the idp-process.log -- and the remote
file is not leaded -- I came across this earlier but can't remember what I
did.


In SERVICES.XML:
<util:list id="shibboleth.AttributeFilterResources">
        <ref bean="FileBackedAttributeFilter"/>
    </util:list>

    <bean id="FileBackedAttributeFilter"
          class="net.shibboleth.ext.spring.resource.FileBackedHTTPResource"
          c:client-ref="shibboleth.FileCachingHttpClient"
          c:url="https://foobar/idp/attribute-filter.xml"
          c:backingFile="%{idp.home}/conf/isnt/attribute-filter.inst.xml">
    </bean>

In IDP-PROCESS.LOG:

2017-01-30 14:44:51,425 - ERROR
[net.shibboleth.utilities.java.support.service.AbstractReloadableService:181]
- Service 'shibboleth.AttributeFilterService': Initial load failed
net.shibboleth.utilities.java.support.service.ServiceException:
org.springframework.beans.factory.BeanDefinitionStoreException: IOException
parsing XML document from ServletContext resource
[/opt/shibboleth-idp/conf/attribute-filter.xml]; nested exception is
java.io.FileNotFoundException: Could not open ServletContext resource
[/opt/shibboleth-idp/conf/attribute-filter.xml]
    at
net.shibboleth.ext.spring.service.ReloadableSpringService.doReload(ReloadableSpringService.java:336)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException:
IOException parsing XML document from ServletContext resource
[/opt/shibboleth-idp/conf/attribute-filter.xml]; nested exception is
java.io.FileNotFoundException: Could not open ServletContext resource
[/opt/shibboleth-idp/conf/attribute-filter.xml]
    at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:344)
Caused by: java.io.FileNotFoundException: Could not open ServletContext
resource [/opt/shibboleth-idp/conf/attribute-filter.xml]
    at
org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:141)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20170130/8930ca71/attachment.html>


More information about the users mailing list