I did all the things in the quickstart, putting the LoginStorageProvide as Stateful and
Local to use with ejb3, but which things are missing in my
jboss-deployment-structure.xml?
It's located in src/main/resources/META-INF:
<jboss-deployment-structure
xmlns="urn:jboss:deployment-structure:1.2">
<deployment>
<dependencies>
<module name="org.hibernate" />
<module name="org.jboss.logging" />
<module name="org.keycloak.keycloak-core" />
<module name="org.keycloak.keycloak-server-spi" />
<module name="org.keycloak.keycloak-server-spi-private"/>
<module name="org.postgresql" />
</dependencies>
</deployment>
</jboss-deployment-structure>
-----Original Message-----
From: Marek Posolda [mailto:mposolda@redhat.com]
Sent: Monday, September 30, 2019 10:08 AM
To: Alfonso Vidal García <avidal(a)gmv.com>; keycloak-user(a)lists.jboss.org
Subject: Re: [keycloak-user] Keycloak does not found SPI User Storage provider
I suppose that mentioned class
"gcs.fds.focusoc.keycloak.spi.LoginStorageProvide" is available in your module?
If yes, I suppose that issue is, that your provider uses some dependencies, which are not
declared in jboss-deployment-structure.xml file or as dependencies of your module. You may
take a look at quickstarts or documentation for more details.
Marek
On 30. 09. 19 8:43, Alfonso Vidal García wrote:
Good morning,
I have configured a Spring Boot project with connection to Keycloak, and also I want to
install a Custom SPI User Provider external to Keycloak.
I did all the steps to do the Provider and ProviderFactory, and also
the file in META-INF/services, and when I try to deploy on Wildfly to
connect with Keycloak, fails,
12:52:26,079 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001:
Failed to start service
jboss.deployment.unit."focusoc-0.0.1-SNAPSHOT.jar".POST_MODULE:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."focusoc-0.0.1-SNAPSHOT.jar".POST_MODULE: WFLYSRV0153:
Failed to process phase POST_MODULE of deployment "focusoc-0.0.1-SNAPSHOT.jar"
at
org.jboss.as.server(a)9.0.2.Final//org.jboss.as.server.deployment.Deploy
mentUnitPhaseService.start(DeploymentUnitPhaseService.java:183)<mailto
:org.jboss.as.server@9.0.2.Final//org.jboss.as.server.deployment.Deplo
ymentUnitPhaseService.start(DeploymentUnitPhaseService.java:183)>
at
org.jboss.msc(a)1.4.8.Final//org.jboss.msc.service.ServiceControllerImpl
$StartTask.startService(ServiceControllerImpl.java:1737)<mailto:org.jb
oss.msc(a)1.4.8.Final//org.jboss.msc.service.ServiceControllerImpl$Start
Task.startService(ServiceControllerImpl.java:1737)>
at
org.jboss.msc(a)1.4.8.Final//org.jboss.msc.service.ServiceControllerImpl
$StartTask.execute(ServiceControllerImpl.java:1699)<mailto:org.jboss.m
sc(a)1.4.8.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.
execute(ServiceControllerImpl.java:1699)>
at
org.jboss.msc(a)1.4.8.Final//org.jboss.msc.service.ServiceControllerImpl
$ControllerTask.run(ServiceControllerImpl.java:1557)<mailto:org.jboss.
msc(a)1.4.8.Final//org.jboss.msc.service.ServiceControllerImpl$Controlle
rTask.run(ServiceControllerImpl.java:1557)>
at
org.jboss.threads(a)2.3.3.Final//org.jboss.threads.ContextClassLoaderSav
ingRunnable.run(ContextClassLoaderSavingRunnable.java:35)<mailto:org.j
boss.threads(a)2.3.3.Final//org.jboss.threads.ContextClassLoaderSavingRu
nnable.run(ContextClassLoaderSavingRunnable.java:35)>
at
org.jboss.threads(a)2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor
.safeRun(EnhancedQueueExecutor.java:1982)<mailto:org.jboss.threads@2.3
.3.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueu
eExecutor.java:1982)>
at
org.jboss.threads(a)2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor
$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)<mailto:org.jbos
s.threads(a)2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadB
ody.doRunTask(EnhancedQueueExecutor.java:1486)>
at
org.jboss.threads(a)2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor
$ThreadBody.run(EnhancedQueueExecutor.java:1377)<mailto:org.jboss.thre
ads(a)2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.ru
n(EnhancedQueueExecutor.java:1377)>
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by:
org.jboss.as.server.deployment.DeploymentUnitProcessingException:
java.lang.ClassNotFoundException:
gcs.fds.focusoc.keycloak.spi.LoginStorageProvider from [Module
"deployment.focusoc-0.0.1-SNAPSHOT.jar" from Service Module Loader]
at
org.jboss.as.ejb3(a)17.0.1.Final//org.jboss.as.ejb3.deployment.processor
s.BusinessViewAnnotationProcessor.getEjbClass(BusinessViewAnnotationPr
ocessor.java:240)<mailto:org.jboss.as.ejb3@17.0.1.Final//org.jboss.as.
ejb3.deployment.processors.BusinessViewAnnotationProcessor.getEjbClass
(BusinessViewAnnotationProcessor.java:240)>
at
org.jboss.as.ejb3(a)17.0.1.Final//org.jboss.as.ejb3.deployment.processor
s.BusinessViewAnnotationProcessor.deploy(BusinessViewAnnotationProcess
or.java:89)<mailto:org.jboss.as.ejb3@17.0.1.Final//org.jboss.as.ejb3.d
eployment.processors.BusinessViewAnnotationProcessor.deploy(BusinessVi
ewAnnotationProcessor.java:89)>
at
org.jboss.as.server(a)9.0.2.Final//org.jboss.as.server.deployment.Deploy
mentUnitPhaseService.start(DeploymentUnitPhaseService.java:176)<mailto
:org.jboss.as.server@9.0.2.Final//org.jboss.as.server.deployment.Deplo
ymentUnitPhaseService.start(DeploymentUnitPhaseService.java:176)>
... 8 more
Caused by: java.lang.ClassNotFoundException:
gcs.fds.focusoc.keycloak.spi.LoginStorageProvider from [Module
"deployment.focusoc-0.0.1-SNAPSHOT.jar" from Service Module Loader]
at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:2
55)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(Conc
urrentClassLoader.java:410)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentCla
ssLoader.java:398)
at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoade
r.java:116)
at
org.jboss.as.ejb3(a)17.0.1.Final//org.jboss.as.ejb3.deployment.processor
s.BusinessViewAnnotationProcessor.getEjbClass(BusinessViewAnnotationPr
ocessor.java:238)<mailto:org.jboss.as.ejb3@17.0.1.Final//org.jboss.as.
ejb3.deployment.processors.BusinessViewAnnotationProcessor.getEjbClass
(BusinessViewAnnotationProcessor.java:238)>
... 10 more
12:52:26,081 ERROR [org.jboss.as.controller.management-operation]
(management-handler-thread - 8) WFLYCTL0013: Operation ("add") failed - address:
([("deployment" => "focusoc-0.0.1-SNAPSHOT.jar")]) - failure
description: {"WFLYCTL0080: Failed services" =>
{"jboss.deployment.unit.\"focusoc-0.0.1-SNAPSHOT.jar\".POST_MODULE"
=> "WFLYSRV0153: Failed to process phase POST_MODULE of deployment
\"focusoc-0.0.1-SNAPSHOT.jar\"
Caused by:
org.jboss.as.server.deployment.DeploymentUnitProcessingException:
java.lang.ClassNotFoundException:
gcs.fds.focusoc.keycloak.spi.LoginStorageProvider from [Module
\"deployment.focusoc-0.0.1-SNAPSHOT.jar\" from Service Module Loader]
Caused by: java.lang.ClassNotFoundException:
gcs.fds.focusoc.keycloak.spi.LoginStorageProvider from [Module
\"deployment.focusoc-0.0.1-SNAPSHOT.jar\" from Service Module
Loader]"}}
12:52:26,082 ERROR [org.jboss.as.server] (management-handler-thread - 8) WFLYSRV0021:
Deploy of deployment "focusoc-0.0.1-SNAPSHOT.jar" was rolled back with the
following failure message:
{"WFLYCTL0080: Failed services" =>
{"jboss.deployment.unit.\"focusoc-0.0.1-SNAPSHOT.jar\".POST_MODULE"
=> "WFLYSRV0153: Failed to process phase POST_MODULE of deployment
\"focusoc-0.0.1-SNAPSHOT.jar\"
Caused by:
org.jboss.as.server.deployment.DeploymentUnitProcessingException:
java.lang.ClassNotFoundException:
gcs.fds.focusoc.keycloak.spi.LoginStorageProvider from [Module
\"deployment.focusoc-0.0.1-SNAPSHOT.jar\" from Service Module Loader]
Caused by: java.lang.ClassNotFoundException:
gcs.fds.focusoc.keycloak.spi.LoginStorageProvider from [Module
\"deployment.focusoc-0.0.1-SNAPSHOT.jar\" from Service Module
Loader]"}}
I try to search in all internet about solutions about that, and I am blocked, so If you
could tell if anything is missing.
Thank you. Alfonso Vidal.
P Please consider the environment before printing this e-mail.
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.jboss.org_m
ailman_listinfo_keycloak-2Duser&d=DwIFaQ&c=CIoxZ4z5BqFvKvSGFOTo726QZIi
NTc_M9CmngT-Pla4&r=F6SAryNNUdjEYGb6lSnLGg&m=evbIMalPg_Vdnbkm-dkm2FOZuC
q3rpUJou89wpSzNBs&s=K_Dshihykr3bfV6bjl96vh7UROM0mFoFqftXPeS9vuA&e=
P Please consider the environment before printing this e-mail.