[keycloak-user] admin-client binary and dependencies

Nhut Thai Le ntle at castortech.com
Fri Jul 6 13:36:20 EDT 2018


Hi Dmitri,

You are correct, i'm in OSGI env. I found that the resteasy-jaxrs and the
other resteasy providers (jaxb, jackson2) are using service loader to read
the providers declaration in META-INF/services but these files are skipped
in OSGI so i had to copy them to my bundle and require a service loader
mediator to load them. Ref:
https://blog.osgi.org/2013/02/javautilserviceloader-in-osgi.html

In a non OSGI env, i'm not sure if requiring keycloak-admin-client only
will pull all resteasy providers and its dependency (fasterxml.*) so it's
still good to know what should be a complete hard/soft set of dependencies
of admin-client.

Thank you

Thai

On Fri, Jul 6, 2018 at 3:01 AM, Dmitry Telegin <dt at acutus.pro> wrote:

> Hi Thai,
>
> Is this correct that you're on OSGi? In non-OSGi environments, it's
> sufficient to declare org.keycloak:keycloak-admin-client only, it
> should pull the rest (see examples/admin-client).
>
> Dmitry
>
> On Thu, 2018-07-05 at 11:42 -0400, Nhut Thai Le wrote:
> >  Hello,
> >
> > Where can i get the binaries of the admin-client and its dependency
> > for KC
> > 4.0.0.Final? I added the following jars from mavencentral  to my
> > package:
> > javax.ws.rs-api,\
> > org.jboss.resteasy:resteasy-jackson2-provider,\
> > org.jboss.resteasy:resteasy-jaxrs,\
> > org.apache.commons.lang3,\
> > org.keycloak:keycloak-admin-client,\
> > org.keycloak.keycloak-core,\
> > org.jboss.resteasy:resteasy-client,\
> > org.jboss.resteasy:resteasy-multipart-provider,\
> > org.jboss.resteasy:resteasy-jaxb-provider,\
> > org.eclipse.equinox.supplement,\
> > com.castortech.iris.security;version=latest,\
> > org.keycloak:keycloak-server-spi-private,\
> > org.keycloak:keycloak-server-spi,\
> > org.keycloak.keycloak-common,\
> > org.eclipse.emf.common,\
> > javax.annotation-api,\
> > com.fasterxml.jackson.jaxrs.jackson-jaxrs-json-provider
> >
> > But i still get error:
> > javax.ws.rs.ProcessingException: RESTEASY003215: could not find
> > writer for
> > content-type application/x-www-form-urlencoded type:
> > javax.ws.rs.core.Form$1
> >
> > When calling .realms().findAll()
> >
> > Thai
> >
>



-- 
Castor Technologies Inc
460 rue St-Catherine St Ouest, Suite 613
Montréal, Québec H3B-1A7
(514) 360-7208 o
(514) 798-2044 f
ntle at castortech.com
www.castortech.com

CONFIDENTIALITY NOTICE: The information contained in this e-mail is
confidential and may be proprietary information intended only for the use
of the individual or entity to whom it is addressed. If the reader of this
message is not the intended recipient, you are hereby notified that any
viewing, dissemination, distribution, disclosure, copy or use of the
information contained in this e-mail message is strictly prohibited. If you
have received and/or are viewing this e-mail in error, please immediately
notify the sender by reply e-mail, and delete it from your system without
reading, forwarding, copying or saving in any manner. Thank you.
AVIS DE CONFIDENTIALITE: L’information contenue dans ce message est
confidentiel, peut être protégé par le secret professionnel et est réservé
à l'usage exclusif du destinataire. Toute autre personne est par les
présentes avisée qu'il lui est strictement interdit de diffuser, distribuer
ou reproduire ce message. Si vous avez reçu cette communication par erreur,
veuillez la détruire immédiatement et en aviser l'expéditeur. Merci.


More information about the keycloak-user mailing list