[keycloak-user] java.lang.NoClassDefFoundError: org/keycloak/representations/AccessTokenResponse

valsaraj pv valsarajpv at gmail.com
Tue May 22 05:37:56 EDT 2018


Hi,

I am getting following exception when calling admin API:

> java.lang.NoClassDefFoundError:
>> org/keycloak/representations/AccessTokenResponse
>
> at java.lang.Class.getDeclaredMethods0(Native Method)
>
> at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
>
> at java.lang.Class.privateGetPublicMethods(Class.java:2902)
>
> at java.lang.Class.getMethods(Class.java:1615)
>
> at org.jboss.resteasy.client.jaxrs.ProxyBuilder.proxy(ProxyBuilder.java:48)
>
> at
>> org.jboss.resteasy.client.jaxrs.ProxyBuilder.build(ProxyBuilder.java:131)
>
> at
>> org.jboss.resteasy.client.jaxrs.internal.ClientWebTarget.proxy(ClientWebTarget.java:74)
>
> at
>> org.keycloak.admin.client.token.TokenManager.<init>(TokenManager.java:55)
>
> at org.keycloak.admin.client.Keycloak.<init>(Keycloak.java:60)
>
> at org.keycloak.admin.client.Keycloak.getInstance(Keycloak.java:106)
>
>
I have added keycloak-admin-client-3.4.3.Final.jar in ear lib & set
dependency to following modules:

> <module name="org.keycloak.keycloak-adapter-spi"/>

<module name="org.keycloak.keycloak-adapter-core"/>

<module name="org.keycloak.keycloak-common"/>

<module name="org.keycloak.keycloak-core"/>


Thanks!


More information about the keycloak-user mailing list