ok, thanks a lot! I'll give it a try.
Von: "Matuszak, Eduard" <eduard.matuszak(a)worldline.com>
An: Christian Froehlich/AWPWB/AGFA@AGFA,
"keycloak-user(a)lists.jboss.org" <keycloak-user(a)lists.jboss.org>
Datum: 17.01.2017 14:04
Betreff: RE: [keycloak-user] example:
authenticator-required-action-example
Hi,
Seems to be the same problem as described (and solved) in attached mail.
So try to include in server-spi-private.package depency.
-----Original Message-----
From: keycloak-user-bounces(a)lists.jboss.org [
mailto:keycloak-user-bounces@lists.jboss.org] On Behalf Of Christian
Froehlich
Sent: Tuesday, January 17, 2017 11:37 AM
To: keycloak-user(a)lists.jboss.org
Subject: [keycloak-user] example: authenticator-required-action-example
Hi,
I read the documentation of the Authentication SPI and I tried to get
the example running like it is described in the README.md file but I got
the following error when I deploy it to my local keycloak server:
-----------------------------------
[ERROR] Failed to execute goal
org.wildfly.plugins:wildfly-maven-plugin:1.1.0.Beta1:deploy (default-cli)
on project authenticator-required-action-example: Failed to execute goal
deploy: {"WFLYC
TL0062: Composite operation failed and was rolled back. Steps that
failed:" => {"Operation step-1" => {"WFLYCTL0080: Failed
services" =>
{"jboss.deployment.unit.\"authenticator-required-action-
example.jar\".POST_MODULE" => "org.jboss.msc.service.StartException in
service
jboss.deployment.unit.\"authenticator-required-action-example.jar\".POST_MODULE:
WFLYSRV0153: Failed to process ph
ase POST_MODULE of deployment
\"authenticator-required-action-example.jar\"
[ERROR] Caused by: java.lang.NoClassDefFoundError: Failed to link
org/keycloak/examples/authenticator/SecretQuestionRequiredActionFactory
(Module \"deployment.authenticator-required-action-exam
ple.jar:main\" from Service Module Loader):
org/keycloak/authentication/RequiredActionFactory"}}}}
-----------------------------------
What I did:
Download and unzip the current version of keycloak 2.5.0.Final and start
the server
checkout the master branch of the keycloak repo, navigate to the
corresponding sub directory of the example
execute mvn clean install wildfly:deploy like it is described in the
README.md of the artifact
I also tried to get it running with the git revision that is tagged with
"2.5.0.Final", but with the same error.
Do I miss something? Any help is welcome!
Kind Regards and thanks in advance
Christian
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user
----- Nachricht von Stian Thorgersen <sthorger(a)redhat.com> auf Fri, 13 Jan
2017 06:18:29 +0000 -----
An:
"Matuszak, Eduard" <eduard.matuszak(a)worldline.com>
Kopie:
"keycloak-user(a)lists.jboss.org" <keycloak-user(a)lists.jboss.org>
Betreff:
Re: [keycloak-user] Hot deployment of service providers in Keycloak 2.5.0
final
On 11 January 2017 at 10:07, Matuszak, Eduard <
eduard.matuszak(a)worldline.com> wrote:
Hello
I am trying to understand and implement the new concept of deploying
service providers, but I fail at several points.
What is meant by the "Keycloak deploy/ directory" mentioned in the
documentation?
When trying the user-storage-simple example it was possible to hot deploy
the jar-file in wildfly's standalone/deployment-dir, but the
event-listener-sysout sample fails by class-loading problem
("java.lang.NoClassDefFoundError: Failed to link
org/keycloak/examples/providers/events/SysoutEventListenerProviderFactory").
There's only one deploy directory ;)
So perhaps not all SPI's do provide the new deployment concept?
There is also a mismatch, I think, between the deploy-description in the
Readme.md of the event-listener-sysout example (describing the "old" way
to deploy) and the documentation in
https://keycloak.gitbooks.io/server-developer-guide/content/topics/provid...
(recommending Keycloak deployer utilizing the enigmatic "Keycloak deploy/
directory").
Only user storage example has been checked with the new hot deploy method.
I'm pretty sure the issue is that the other SPIs (event listener included)
is in server-spi-private. You'll probably just need to add a
jboss-module-structure.xml with a dependencies on that module and it
should work.
I was working on Kecloak 2.5.0 Final.
Thanks in advatage for some clarifications.
Eduard Matuszak
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user