<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><font face="Ubuntu">Hello, <br>
</font></p>
<p><br>
</p>
<p><br>
</p>
<p><font face="Ubuntu">I am attempting to load attributes via a
sub-class of AbstractDataConnector, but I am unable to load the
attributes because my dependency on the AttributeDefinition
isn't loading. Here is what I get:</font></p>
<p><font face="Ubuntu"><br>
</font></p>
<p><font face="Ubuntu">2016-08-30 13:42:19,574 - ERROR
[net.shibboleth.utilities.java.support.service.AbstractReloadableService:181]
- Service 'shibboleth.AttributeResolverService': Initial load
failed<br>
net.shibboleth.utilities.java.support.service.ServiceException:
Failed to load [file
[/opt/shibboleth-idp/conf/attribute-resolver-ucm.xml]]<br>
at
net.shibboleth.ext.spring.service.ReloadableSpringService.doReload(ReloadableSpringService.java:344)<br>
Caused by:
net.shibboleth.utilities.java.support.service.ServiceException:
Unable to initialize attribute resolver for
ApplicationContext:shibboleth.AttributeResolverService<br>
at
net.shibboleth.idp.attribute.resolver.spring.impl.AttributeResolverServiceStrategy.apply(AttributeResolverServiceStrategy.java:74)<br>
Caused by:
net.shibboleth.utilities.java.support.component.ComponentInitializationException:
Attribute Resolver 'ShibbolethAttributeResolver': Plugin 'uid'
has a dependency on plugin 'ucm' which doesn't exist<br>
at
net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl.checkPlugInDependencies(AttributeResolverImpl.java:501)<br>
2016-08-30 13:42:21,334 - ERROR
[net.shibboleth.idp.saml.metadata.impl.AttributeMappingNodeProcessor:144]
- Requested Attributes Mapper: Invalid Attribute resolver
configuration.<br>
</font></p>
<p><font face="Ubuntu"><br>
</font></p>
<p><font face="Ubuntu">Here is my attribute-resolver-ucm.xml</font></p>
<p><font face="Ubuntu"> <resolver:AttributeDefinition
xsi:type="ad:Simple" id="uid" sourceAttributeID="uid"><br>
<resolver:Dependency ref="ucm" /><br>
.....<br>
</resolver:AttributeDefinition><br>
</font></p>
<p><font face="Ubuntu"><br>
</font></p>
<p><font face="Ubuntu">ucm is a spring bean that doesn't seem to be
loading or not loading in the correct order. I've tried adding
the following to global and services, but I still get the same
error. <br>
</font></p>
<p><font face="Ubuntu"><bean id="ucmDataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource"><br>
<property name="driverClassName"
value="com.mysql.jdbc.Driver" /><br>
<property name="url"
value="jdbc:mysql://host.dupage88.net:3306/usercentral?autoReconnect=true"
/><br>
<property name="username" value="username" /><br>
<property name="password" value="password" /><br>
</bean><br>
<br>
<bean id="userManager"
class="net.dupage88.usercentral.manager.DefaultUserManager"><br>
<constructor-arg ref="ucmDataSource" /><br>
</bean><br>
<br>
<bean id="ucm"
class="net.dupage88.usercentralsaml.resolver.UcmDataConnector"><br>
<property name="userManager" ref="userManager" /></font></p>
<p><font face="Ubuntu"> </bean><br>
</font></p>
<p><font face="Ubuntu">My class </font><font face="Ubuntu">UcmDataConnector
extends </font>AbstractDataConnector. What am I missing to
allow a spring bean to be used in the attribute resolver config.
I thought this was possible, am I wrong?</p>
<p><br>
</p>
<p>Ubuntu 16.04<br>
Java 1.8.0-101<br>
Shib IDP 3.2.1<br>
</p>
<p><br>
</p>
<p>Thanks<br>
</p>
<p><font face="Ubuntu"><br>
</font></p>
</body>
</html>