Issue locating namespace handler when configuring data connector
Dana Duerr
Dana.Duerr at worldatwork.org
Wed Aug 12 10:49:37 EDT 2015
Hi All,
Let me start with the obligatory I'm pretty new to Shibboleth so please be gentle. We have IdP 3 installed and are able to do successful SSO with a static data connector. Once we created a custom data connector we are seeing the NamespaceHandler error below.
I think I have included all the relevant information below…. Sorry for the wall of text. Any help would be appreciated.
Thanks,
Dana
<ERROR>
2015-08-12 06:52:37,009 - ERROR [net.shibboleth.utilities.java.support.service.AbstractReloadableService:181] - Service 'shibboleth.AttributeResolverService': Initial load 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]
Offending resource: file [/opt/shibboleth-idp/conf/attribute-resolver.xml]
at net.shibboleth.ext.spring.service.ReloadableSpringService.doReload(ReloadableSpringService.java:334)
Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate NamespaceHandler for namespace [urn:global:waw:1.0:resolver]
Offending resource: file [/opt/shibboleth-idp/conf/attribute-resolver.xml]
at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
</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: classpath\:/schema/waw-resolver.xsd = schema/waw-resolver.xsd
My waw-resolver.xsd starts with:
<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:
<resolver:AttributeResolver
xmlns:resolver="urn:mace:shibboleth:2.0:resolver"
xmlns:pc="urn:mace:shibboleth:2.0:resolver:pc"
xmlns:ad="urn:mace:shibboleth:2.0:resolver:ad"
xmlns:dc="urn:mace:shibboleth:2.0:resolver:dc"
xmlns:enc="urn:mace:shibboleth:2.0:attribute:encoder"
xmlns:sec="urn:mace:shibboleth:2.0:security"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:waw="urn:global:waw:1.0:resolver"
xsi:schemaLocation="urn:mace:shibboleth:2.0:resolver http://shibboleth.net/schema/idp/shibboleth-attribute-resolver.xsd
urn:mace:shibboleth:2.0:resolver:pc http://shibboleth.net/schema/idp/shibboleth-attribute-resolver-pc.xsd
urn:mace:shibboleth:2.0:resolver:ad http://shibboleth.net/schema/idp/shibboleth-attribute-resolver-ad.xsd
urn:mace:shibboleth:2.0:resolver:dc http://shibboleth.net/schema/idp/shibboleth-attribute-resolver-dc.xsd
urn:mace:shibboleth:2.0:attribute:encoder http://shibboleth.net/schema/idp/shibboleth-attribute-encoder.xsd
urn:mace:shibboleth:2.0:security http://shibboleth.net/schema/idp/shibboleth-security.xsd
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>
More information about the dev
mailing list