<div dir="ltr"><div>I am attempting to set the 'attribute-resolver.xml' lookup for an attribute via the DB -- the DB setting's are defined in the Tomcat's 'server.xml'.<br><br></div><div>The following error comes up (the attribute-resolver's DataConnector is listed immediate following).<br><br></div><div>I can't figure out what was missing in the DataConnector to trigger the error. And help would be appreciated. Thanks.<br></div><div><br>2017-01-06 17:31:53,923 - ERROR [org.springframework.web.context.ContextLoader:351] - Context initialization failed<br>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shibboleth.metrics.RegisterMetricSets$child#0' defined in file [/opt/shibboleth-idp/system/conf/../../conf/admin/metrics.xml]: Cannot resolve reference to bean 'shibboleth.metrics.AttributeResolverGaugeSet' while setting bean property 'arguments' with key [7]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shibboleth.metrics.AttributeResolverGaugeSet' defined in file [/opt/shibboleth-idp/system/conf/general-admin-system.xml]: Invocation of init method failed; nested exception is net.shibboleth.utilities.java.support.component.ComponentInitializationException: Injected service was null or not an AttributeResolver<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 'shibboleth.metrics.AttributeResolverGaugeSet' defined in file [/opt/shibboleth-idp/system/conf/general-admin-system.xml]: Invocation of init method failed; nested exception is net.shibboleth.utilities.java.support.component.ComponentInitializationException: Injected service was null or not an AttributeResolver<br>    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)<br>Caused by: net.shibboleth.utilities.java.support.component.ComponentInitializationException: Injected service was null or not an AttributeResolver<br>    at net.shibboleth.idp.attribute.resolver.impl.AttributeResolverServiceGaugeSet.doInitialize(AttributeResolverServiceGaugeSet.java:104)<br><br><br></div><div>Data connector from 'attribute-resolver.xml':<br></div><div><br><br><DataConnector id="loginname" xsi:type="RelationalDatabase"><br><br>             <FailoverDataConnector ref="loginname-staticfailoverconnector" /><br>             <br></div>            <!-- define in tomcat's server.xml --><br><div>             <ContainerManagedConnection resourceName="java:comp/env/jdbc/SDB"  /><br>             <br>        <br>       <QueryTemplate><br>        <![CDATA[<br>                        select * from LOGINNAME where LOGIN = '$requestContext.principalName'<br>        ]]><br>        </QueryTemplate><br><br>                <Column columnName="LOGIN" attributeID="loginName" /><br>                               <br>      </DataConnector><br></div></div>