[keycloak-user] org.keycloak.keycloak-services
Nikola Malenic
nikola.malenic at netsetglobal.rs
Mon Sep 3 03:44:06 EDT 2018
Thanky you very much.
That's how I already done it after some research and it's working like a charm.
Thanks again,
Nikola
-----Original Message-----
From: Dmitry Telegin [mailto:dt at acutus.pro]
Sent: Monday, September 3, 2018 6:27 AM
To: Nikola Malenic <nikola.malenic at netsetglobal.rs>; keycloak-user at lists.jboss.org
Subject: Re: [keycloak-user] org.keycloak.keycloak-services
Hello Nikola,
Declaring dependencies in pom.xml alone is not sufficient for them to be resolved in runtime.
Seems that you're deploying your authenticator via the standalone/deployments directory. In this case, you should include a META-INF/jboss-deployment-structure.xml into your JAR.
Example: https://github.com/dteleguin/beercloak/blob/14da8578310f2d257bdc1b059a8d355343174180/src/main/resources/META-INF/jboss-deployment-structure.xml
You should change the module name to "deployment.aas" and leave only the dependencies you need.
Good luck!
Dmitry Telegin
CTO, Acutus s.r.o.
Keycloak Consulting and Training
Pod lipami street 339/52, 130 00 Prague 3, Czech Republic
+42 (022) 888-30-71
E-mail: info at acutus.pro
On Fri, 2018-08-31 at 09:58 +0200, Nikola Malenic wrote:
> I developed an authentication provider and am trying to deploy it on
> the KC server. My project depends on the Keycloak-services:
>
>
>
> <dependency>
>
> <groupId>org.keycloak</groupId>
>
> <artifactId>keycloak-services</artifactId>
>
> <scope>provided</scope>
>
> <version>${keycloak.version}</version>
>
> </dependency>
>
>
>
> My version is the same as running Keycloak server.
>
> I'm getting error:
>
> java.lang.NoClassDefFoundError: Failed to link
> rs/netset/aas/authenticator/user_pass/CustomUsernamePasswordForm
> (Module \"deployment.aas-1.0.DEBUG.jar\" from Service Module Loader):
> org/keycloak/authentication/authenticators/browser/AbstractUsernameFor
> mAuthe
> nticator"}}
>
>
>
> And wildfly succeeds in finding other dependencies, like
> keycloak-server-spi etc.
>
> Any clue why is this happening?
>
>
>
> Many thanks,
>
> Nikola
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
More information about the keycloak-user
mailing list