Issue finding NamespaceHandler when configuring attribute-resolver.xml
Dana Duerr
Dana.Duerr at worldatwork.org
Tue Aug 11 16:34:52 EDT 2015
Hi All,
We have made a lot of progress with or IdP 3 installation. For our first stab at attributes we created a Static data connector and were able to successfully complete a full SSO session and send our static attributes. We recently updated our code to use a custom data connector and we now get the following error. I think I have included all the relevant information below…. Sorry for the wall of text. Any help would be appreciated.
Thanks,
Dana
<ERROR>
ERROR [net.shibboleth.utilities.java.support.service.AbstractReloadableService:231] - Service 'shibboleth.AttributeResolverService': Reload for shibboleth.AttributeResolverService failed
net.shibboleth.utilities.java.support.service.ServiceException: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate NamespaceHandler for namespace [urn:global:waw:1.0:resolver]
</ERROR>
I have created a namespace handler that extends from BaseSpringNamespaceHandler. It has a public var NAMESPACE set to "urn:global:waw:1.0:resolver".
In my resources/METAINF folder I have:
Spring.handlers: urn\:global\:waw\:1.0\:resolver = org.worldatwork.shibboleth.config.WaWNamespaceHandler
and
Spring.schemas: urn\:global\:waw\:1.0\:resolver = schema/waw-resolver.xsd
In my resources/schema folder I have waw-resolver.xsd. The relevant parts are:
<schema targetNamespace="urn:global:waw:1.0:resolver" xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:waw="urn:global:waw:1.0:resolver"
in my attributes-resolver.xml I’ve added the following xmlns and schemaLocation:
xmlns:waw="urn:global:waw:1.0:resolver"
urn:global:waw:1.0:resolver classpath:/schema/waw-resolver.xsd
My data connector is configured as follows (with the attribute definitions following):
<resolver:DataConnector id="WaWAttributes" xsi:type="waw:Test"
xmlns="urn:global:waw:1.0:resolver"
mail = "mail"
eduPersonTargetedID = "eduPersonTargetedID"
personRole = "personRole"
firstName = "firstName"
lastName = "lastName"
certifications = "certifications"
title ="title"
companyName = "companyName"
shippingAddress = "shippingAddress"
phone = "phone"
areaOfExpertise = "areaOfExpertise"
authorWorks = "authorWorks"
reviewWorks = "reviewWorks">
</resolver:DataConnector>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20150811/809d8b2e/attachment-0001.html>
More information about the users
mailing list