Access Java Library in IDP v5

Christopher Bland chris at fdu.edu
Mon Mar 11 18:56:07 UTC 2024


Hi All,

In an older implementation of Shibboleth I was able to insert host name as part of login and error pages.  I did the following:

In /opt/shibboleth-idp/conf/global.xml

    <util:map id="shibboleth.CustomViewContext">
        <entry key="inetAddress">
            <bean class="java.net.InetAddress" />
        </entry>
    </util:map>

I was able to put the information on my login page using the following:

/opt/shibboleth-idp/views/login.vm

$custom.get('inetAddress').getLocalHost().getHostName()

Now I am getting an error message

2024-03-11 10:09:28,617 - WARN [net.shibboleth.shared.spring.context.DelimiterAwareApplicationContext:616] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shibboleth.CustomViewContext': Cannot create inner bean 'java.net.InetAddress#7fb66650' of type [java.net.InetAddress] while setting bean property 'sourceMap' with key [TypedStringValue: value [inetAddress], target type [null]]


What is the best way to get a hosts DNS name?

-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20240311/8aefedcc/attachment.htm>


More information about the users mailing list