[keycloak-user] Custom SPI does not appear in list
Stian Thorgersen
sthorger at redhat.com
Tue Oct 8 09:50:03 EDT 2019
Same issue with KC 7?
On Mon, 7 Oct 2019 at 10:09, John Norris <johnnorris-10 at outlook.com> wrote:
> Hi Stian,
> if I comment out my line then keycloak starts.
> if I leave my line in and comment out the line
> with microprofile-metrics-smallrye:2.0 and leave my line in, then it fails
> to start. Different error but it does not actually say anything useful
> 08:39:40,817 INFO [org.jboss.as.server] (Thread-1) WFLYSRV0220: Server
> shutdown has been requested via an OS signal
> 08:39:40,859 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool
> -- 65) MSC000001: Failed to start service
> jboss.deployment.unit."keycloak-server.war".undertow-deployment:
> org.jboss.msc.service.StartException in service
> jboss.deployment.unit."keycloak-server.war".undertow-deployment:
> java.lang.RuntimeException: RESTEASY003325: Failed to construct public
> org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)
> at org.wildfly.extension.undertow at 16.0.0.Final
> //org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:81)
> etc etc
>
> My standalone.xml is as installed with 6.0.1. The unchanged file works.
> Add my line - fails. Remove metrics-smallrye - fails.
>
> Regards,
> John
>
> ------ Original Message ------
> From: "Stian Thorgersen" <sthorger at redhat.com>
> To: "John Norris" <johnnorris-10 at outlook.com>
> Cc: "Alfonso Vidal García" <avidal at gmv.com>; "keycloak-user" <
> keycloak-user at lists.jboss.org>
> Sent: 07/10/2019 08:46:26
> Subject: Re: Re[2]: [keycloak-user] Custom SPI does not appear in list
>
> module deployment like you've done is what I referred to by the old school
> deployment approach. So what you're doing looks about right.
>
> Do you only get the NPE below when you include your module? Is your
> standalone.xml in sync with the latest release or perhaps it's missing
> something?
>
> On Mon, 7 Oct 2019, 08:44 John Norris, <johnnorris-10 at outlook.com> wrote:
>
>> 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
>> //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>
>> To: "Alfonso Vidal García" <avidal at gmv.com>
>> Cc: "keycloak-user" <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