[keycloak-user] Custom SPI does not appear in list

John Norris johnnorris-10 at outlook.com
Mon Oct 7 02:44:49 EDT 2019


I think I may have the same problem.
I have updated standalone.xml

    <subsystem xmlns="urn:jboss:domain:keycloak-server:1.1">
        <web-context>auth</web-context>
        <providers>
            <provider>classpath:${jboss.home.dir}/providers/*</provider>
            <!-- this is the line I have added -->
            <provider>module:org/softwarefactory/keycloak/mqtt</provider>
        </providers>

and when I run standalone.sh, I get

 16:24:40,028 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("subsystem" => "microprofile-metrics-smallrye")]): java.lang.NullPointerException
at org.wildfly.extension.microprofile.metrics-smallrye at 16.0.0.Final<mailto:org.wildfly.extension.microprofile.metrics-smallrye at 16.0.0.Final>//org.wildfly.extension.microprofile.metrics.MicroProfileMetricsSubsystemAdd$2.execute(MicroProfileMetricsSubsystemAdd.java:86)

So two questions.
Can I remove  microprofile-metrics-smallrye from standalone.xml?
What is the old school module deployment - I basically followed 6.2.2 in Server Developer docs.

Regards,
John

------ Original Message ------
From: "Stian Thorgersen" <sthorger at redhat.com<mailto:sthorger at redhat.com>>
To: "Alfonso Vidal García" <avidal at gmv.com<mailto:avidal at gmv.com>>
Cc: "keycloak-user" <keycloak-user at lists.jboss.org<mailto:keycloak-user at lists.jboss.org>>
Sent: 07/10/2019 07:30:09
Subject: Re: [keycloak-user] Custom SPI does not appear in list

Deployments in standalone/deployments doesn't currently support deploying
SPIs. You need to use the old-school module deployment approach for that.




More information about the keycloak-user mailing list