FileCachingHttpClientFactory and IdP v4

Marco Malavolti marco.malavolti at garr.it
Tue Apr 28 09:35:22 EDT 2020


Thank you so much Scott!!!

I have replaced my code:

    <bean id="Custom-Filter" class="net.shibboleth.ext.spring.resource.FileBackedHTTPResource"
           c:client-ref="shibboleth.FileCachingHttpClient"
           c:url="http://example.org/attribute-filter-v4-custom.xml"
           c:backingFile="%{idp.home}/conf/attribute-filter-v4-custom.xml"/>

with the new one provided on: https://wiki.shibboleth.net/confluence/display/IDP4/HTTPResource

<bean id="MyHTTPClient" class="shibboleth.FileCachingHttpClientFactory"
    p:connectionTimeout="PT30S"
    p:connectionRequestTimeout="PT30S"
    p:socketTimeout="PT30S"
    p:cacheDirectory="%{idp.home}/configcache" />
 
<bean id="Custom-Filter" class="net.shibboleth.ext.spring.resource.FileBackedHTTPResource"
    c:client-ref="MyHTTPClient"
    c:url="http://example.org/path/to/file.xml"
    c:backingFile="/var/shibboleth/caches/resourcecache/file.xml"/>

(I had to create the "configcache" dir before restarting the service)

but I met this ERROR:

2020-04-28 15:16:05,007 -  - ERROR [org.springframework.web.context.ContextLoader:313] - Context initialization failed
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [shibboleth.FileCachingHttpClientFactory] for bean with name 'MyHTTPClient' defined in file [/opt/shibboleth-idp/system/conf/../../conf/services.xml]; nested exception is java.lang.ClassNotFoundException: shibboleth.FileCachingHttpClientFactory
	at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1477)
Caused by: java.lang.ClassNotFoundException: shibboleth.FileCachingHttpClientFactory
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)


Forgive me for all this disturb, but... Can you help me also on this, please?

I have installed the new Shibboleth IdP v4.x from scratch.

Thank you very much Scott!

-- 
Marco Malavolti
Consortium GARR - Servizio IDEM GARR AAI
Via dei Tizii, 6 - I-00185 (ROMA)
CF: 97284570583 - PI:07577141000
Mobile: +39 331 608 3639
Skype: marco.mala
PGP KEY: https://keys.openpgp.org/search?q=marco.malavolti@garr.it

Il 28/04/20 14:35, Cantor, Scott ha scritto:
> On 4/28/20, 4:09 AM, "users on behalf of Marco Malavolti" <users-bounces at shibboleth.net on behalf of marco.malavolti at garr.it> wrote:
>
>> I have also found this doc:
>> https://wiki.shibboleth.net/confluence/display/IDP4/HTTPResource
>> Is it updated? If not, could you update with the new code, please?
> I don't know what state it's in, I'll have to review it.
>
> -- Scott
>
>


More information about the users mailing list