[keycloak-user] Unable to register provider implementation: not a subtype exception
Alessandro Tundo
aletundo at wikitolearn.org
Fri Jan 5 06:48:38 EST 2018
Hi folks!
Someone could help me out with this?
Best regards,
Alessandro
2017-12-20 16:52 GMT+01:00 Alessandro Tundo <aletundo at wikitolearn.org>:
> Hi folks!
>
> I followed the documentation for implementing and registering a SPI but
> I'm not able to deploy it correctly.
>
> The raised exception is:
>
> *java.util.ServiceConfigurationError:
> org.keycloak.credential.hash.PasswordHashProviderFactory: Provider
> org.wikitolearn.keycloak.provider.MediaWikiBTypePasswordHashProviderFactory
> not a subtype*
>
> I tried both registration ways but the outcome is the same. The .jar I'm
> trying to deployt has the following structure:
>
>
> - META-INF/services/org.keycloak.credential.hash.
> PasswordHashProviderFactory
> - org/wikitolearn/keycloak/provider/MediaWikiBTypePasswor
> dHashProviderFactory.class
> - org/wikitolearn/keycloak/provider/MediaWikiBTypePasswor
> dHashProvider.class
>
> The factory and the provider implements respectively PasswordHashProviderFactory
> and PasswordHashProvider.
>
> I would like also to point out that the SPI works correctly in my Keycloak
> fork. But as you can imagine, a fork is not a good option. Especially when
> are available more elegant ways to extend the software programatically
> without a fork.
>
> I'm looking forward to receiving your reply asap.
>
> Thank you!
>
> Alessandro
>
More information about the keycloak-user
mailing list