v2 question

Paul Hethmon paul.hethmon at clareitysecurity.com
Mon Mar 7 15:56:01 EST 2016


Obviously not supported, but I’m still using it and trying to write the OIDC code to it for now. I’ve got my skeleton profile handler built and running, it just needs some plumbing to connect it to the existing OIDC code. One of those plumbing points is to create in memory the OIDC configuration information. In v2, that feels like I need a Service component to build that information and make it available to my components (as opposed to doing some sort of independent Listener or Servlet). 

My current issue is an XML error while the service.xml file is loading:

SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [file:/clareity/shibboleth-idp//conf/service.xml]; 
nested exception is java.lang.IllegalArgumentException: Cannot locate BeanDefinitionParser for element: {urn:mace:shibboleth:2.0:services}Service

In service.xml I have my component:

    <!-- The service to load and create the OIDC configuration information based on the SAML2 configuration -->
    <srv:Service id="clareity.OIDCConfigurationManager" depends-on=""
    	xsi:type="oidccfg:OIDCConfigurationManager">
    </srv:Service>

The namespace reference is working and it finds my xsd which is pretty minimal:

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema 
	xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
	xmlns:service="urn:mace:shibboleth:2.0:services"
	targetNamespace="com:clareity:shib:oidc:configuration"
	elementFormDefault="qualified">

    <xsd:import namespace="urn:mace:shibboleth:2.0:services" schemaLocation="classpath:/schema/shibboleth-2.0-services.xsd"/>

    <xsd:complexType name="OIDCConfigurationManager">
        <xsd:complexContent>
            <xsd:extension base=“service:ReloadableServiceType" />
        </xsd:complexContent>
    </xsd:complexType>

</xsd:schema>

Commenting out my entry in service.xml allows Shib to load.

Any pointers on where to look for my error?

thanks,

Paul

-----
Paul Hethmon
Chief Software Architect
paul.hethmon at clareitysecurity.com




More information about the dev mailing list