Skip to content
Advertisement

RESTEASY003145: Unable to find a MessageBodyReader of content-type application/json and type class org.keycloak.representations.AccessTokenResponse

I’m trying to test Keycloak REST API. Instaled the version 2.1.0.Final. I can access the admin through browser with SSL without problems.

I’m using the code above:

JavaScript

And got the error:

JavaScript

I added the dependencies above, but do not solve my problem:

JavaScript

Any clues?

Advertisement

Answer

I solved !! You must add org.jboss.resteasy.plugins.providers.jackson.ResteasyJacksonProvider into META-INF/services/javax.ws.rs.ext.Providers file then run your executable jar.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement