Loading attribute-filter.xml from HTTP resource

Joel Levin joel.aaron.levin at gmail.com
Mon Jan 30 19:20:13 EST 2017


Took me sometime to figure this out -- if an 'attribute-filter.xml' or
'attribute-resolver.xml
' is not found in 'idp-home/conf' the message earlier spews out.

Although the 'services.xml' is pointing to a different location.

Thanks.


On Mon, Jan 30, 2017 at 2:49 PM, Joel Levin <joel.aaron.levin at gmail.com>
wrote:

> 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/28dff6f4/attachment-0001.html>


More information about the users mailing list