shibboleth-dev - RE: [Shib-Dev] Re: Custom IdP Extension - example schema does not work
Subject: Shibboleth Developers
List archive
- From: <>
- To: <>
- Subject: RE: [Shib-Dev] Re: Custom IdP Extension - example schema does not work
- Date: Fri, 12 Mar 2010 10:07:35 -0500
- Accept-language: en-US
- Acceptlanguage: en-US
I am coming into this rather late and without certainty on everything you
have tried, but I know that when I developed my first couple of custom data
connectors, I had a few issues with the Bean Definition stuff, because I
didn't realize how tightly the XML to Java bindings were. I think I have
seen that error before, and for me it was because I had an inconsistency in
my Java code and XSD in terms of the name of a type. I would recommend just
doing a once over and make sure you didn't typo anything in the XML config
file, the XSD, or the Java code.
________________________________________
From: Jan Peter Stotz
[]
Sent: Friday, March 12, 2010 9:26 AM
To:
Subject: [Shib-Dev] Re: Custom IdP Extension - example schema does not work
Hi Chad,
thanks for the example. Looks like my understanding of the XML Schema
and how to use it in handlers.xml was better than I thought because I
came to the same result - just with one small difference: on my system
it doesn't work :(
I get the exception:
java.lang.IllegalArgumentException: Cannot locate BeanDefinitionParser
for element: {urn:mace:shibboleth:2.0:idp:profile-handler}LoginHandler
while Shibboleth's ProfileHandlerGroupBeanDefinitionParser.parse(..)
method is executed (that is the relevant class of the stack trace).
I simply don't understand why that happens. While debugging using
break-points I verified that my the relevant NameSpaceHandler of
Shibboleth and my own are correctly loaded, the custom schema file is
loaded, too.
Ciao Jan
Chad La Joie wrote:
> A namespace declaration looks like this:
>
> xmlns:PREFIX="some:urn:or:url"
>
> Then you use the declaration like this:
>
> PREFIX:MyCustomType
>
> So, assume a created namespace of "http://fraunhofer.de/idp/handler" and
> assume the custom type that you defined was "SmartCard" like you had.
>
> You declare your namespace, usually at the top of the file, but really
> any time before you use it is fine. So, you'd do this:
>
> <ProfileHandlerGroup
> xmlns="urn:mace:shibboleth:2.0:idp:profile-handler"
> xmlns:custom="http://fraunhofer.de/idp/handler"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="urn:mace:shibboleth:2.0:idp:profile-handler
>
> classpath:/schema/shibboleth-2.0-idp-profile-handler.xsd
> http://fraunhofer.de/idp/handler
> classpath:/schema/fraunhofer-custom-handler.xsd">
>
>
> And then you'd use it as such:
>
> <LoginHandler xsi:type="custom:SmartCard">
> <AuthenticationMethod>urn:oasis:names:tc:SAML:2.0:ac:classes:unspecified</AuthenticationMethod>
> </LoginHandler>
- RE: [Shib-Dev] Custom IdP Extension - example schema does not work, (continued)
- RE: [Shib-Dev] Custom IdP Extension - example schema does not work, Scott Cantor, 03/11/2010
- Re: [Shib-Dev] Custom IdP Extension - example schema does not work, Jim Fox, 03/11/2010
- Re: Custom IdP Extension - example schema does not work, Jan Peter Stotz, 03/12/2010
- Re: [Shib-Dev] Re: Custom IdP Extension - example schema does not work, Chad La Joie, 03/12/2010
- Re: Custom IdP Extension - example schema does not work, Jan Peter Stotz, 03/12/2010
- Re: [Shib-Dev] Re: Custom IdP Extension - example schema does not work, Chad La Joie, 03/12/2010
- Re: Custom IdP Extension - example schema does not work, Jan Peter Stotz, 03/12/2010
- Re: [Shib-Dev] Re: Custom IdP Extension - example schema does not work, Chad La Joie, 03/12/2010
- Re: Custom IdP Extension - example schema does not work, Jan Peter Stotz, 03/12/2010
- Re: [Shib-Dev] Re: Custom IdP Extension - example schema does not work, Chad La Joie, 03/12/2010
- RE: [Shib-Dev] Re: Custom IdP Extension - example schema does not work, Jeff.Krug, 03/12/2010
- Re: Custom IdP Extension - example schema does not work, Jan Peter Stotz, 03/12/2010
- Re: Custom IdP Extension - example schema does not work, Jan Peter Stotz, 03/12/2010
- Re: [Shib-Dev] Re: Custom IdP Extension - example schema does not work, Chad La Joie, 03/12/2010
- Re: [Shib-Dev] Re: Custom IdP Extension - example schema does not work, Jim Fox, 03/12/2010
- Re: Custom IdP Extension - example schema does not work, Jan Peter Stotz, 03/12/2010
- Re: [Shib-Dev] Re: Custom IdP Extension - example schema does not work, Chad La Joie, 03/12/2010
- Re: Custom IdP Extension - example schema does not work, Jan Peter Stotz, 03/12/2010
Archive powered by MHonArc 2.6.16.