Skip to Content.
Sympa Menu

mace-opensaml-users - Re: Problems signing/validating metadata

Subject: OpenSAML user discussion

List archive

Re: Problems signing/validating metadata


Chronological Thread 
  • From: Brent Putman <>
  • To:
  • Subject: Re: Problems signing/validating metadata
  • Date: Thu, 14 Feb 2008 11:43:35 -0500

Hmm, well, that's not happening for me.    I just ran the complete suite of unit tests on the opensaml stack and I get no errors.  Also, I searched all the files in the entire project for that class name (org.opensaml.samlext.saml2mdquery.impl.AttributeQueryDescriptorBuilder) and it doesn't appear anywhere.  Note I renamed those classes with the -Type convention. The actual class is now called org.opensaml.samlext.saml2mdquery.impl.AttributeQueryDescriptorTypeBuilder.

So it sounds like somehow you have the newer version of the code, but are somehow trying to load the older version of the config file for those providers, named saml2-metadata-query-config.xml.

The contents of that file should be:


    <ObjectProviders>

        <!-- ActionNamespace provider -->
        <ObjectProvider qualifiedName="query:ActionNamespace">
            <BuilderClass className="org.opensaml.samlext.saml2mdquery.impl.ActionNamespaceBuilder" />
            <MarshallingClass className="org.opensaml.samlext.saml2mdquery.impl.ActionNamespaceMarshaller" />
            <UnmarshallingClass className="org.opensaml.samlext.saml2mdquery.impl.ActionNamespaceUnmarshaller" />
        </ObjectProvider>
       
        <!-- AttributeQueryDescriptorType provider -->
        <ObjectProvider qualifiedName="query:AttributeQueryDescriptorType">
            <BuilderClass className="org.opensaml.samlext.saml2mdquery.impl.AttributeQueryDescriptorTypeBuilder" />
            <MarshallingClass className="org.opensaml.samlext.saml2mdquery.impl.AttributeQueryDescriptorTypeMarshaller" />
            <UnmarshallingClass className="org.opensaml.samlext.saml2mdquery.impl.AttributeQueryDescriptorTypeUnmarshaller" />
        </ObjectProvider>

        <!-- AuthnQueryDescriptorType provider -->
        <ObjectProvider qualifiedName="query:AuthnQueryDescriptorType">
            <BuilderClass className="org.opensaml.samlext.saml2mdquery.impl.AuthnQueryDescriptorTypeBuilder" />
            <MarshallingClass className="org.opensaml.samlext.saml2mdquery.impl.AuthnQueryDescriptorTypeMarshaller" />
            <UnmarshallingClass className="org.opensaml.samlext.saml2mdquery.impl.AuthnQueryDescriptorTypeUnmarshaller" />
        </ObjectProvider>

        <!-- AuthzDescisionQueryDescriptorType provider -->
        <ObjectProvider qualifiedName="query:AuthzDecisionQueryDescriptorType">
            <BuilderClass className="org.opensaml.samlext.saml2mdquery.impl.AuthzDecisionQueryDescriptorTypeBuilder" />
            <MarshallingClass className="org.opensaml.samlext.saml2mdquery.impl.AuthzDecisionQueryDescriptorTypeMarshaller" />
            <UnmarshallingClass className="org.opensaml.samlext.saml2mdquery.impl.AuthzDecisionQueryDescriptorTypeUnmarshaller" />
        </ObjectProvider>
       
    </ObjectProviders>




If if looks other than that, it's not correct.  All I can think of is either you have an incomplete SVN update (don't see how that's possible, the config file and class updates were in the same check-in), or you must be doing some kind of custom building and packaging process (i.e. other than running our ant 'package' target).  If the latter, you're on your own, I can't fix that for you.

--Brent



Manuela Stanica wrote:
Hi, thanks for the tips! I got a clearer picture of the issue now.
I made all the changes you mentioned, had added an extension schema which i updated accordingly, and at least marshalling of the RoleDescriptor seems to be working fine . However when I try to  run any class invloving the default bootstrap, I get an error which doesn't seem to be realted to my code:

1901 [main] ERROR org.opensaml.xml.XMLConfigurator - Error initializing object provier [ObjectProvider: null]
org.opensaml.xml.ConfigurationException: Can not create instance of org.opensaml.samlext.saml2mdquery.impl.AttributeQueryDescriptorBuilder
    at org.opensaml.xml.XMLConfigurator.createClassInstance(XMLConfigurator.java:334)
    at org.opensaml.xml.XMLConfigurator.initializeObjectProviders(XMLConfigurator.java:218)
    at org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:164)
    at org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:148)
    at org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:125)
    at org.opensaml.DefaultBootstrap.initializeXMLTooling(DefaultBootstrap.java:135)
    at org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:75)
...

Looks like a bootstrapping error connected to the updates you just made in the saml2mdquery package.

Manuela






Archive powered by MHonArc 2.6.16.

Top of Page