[keycloak-user] Exception while running kaycloak 1.5.0 third party example

Marko Strukelj mstrukel at redhat.com
Wed Oct 14 05:01:31 EDT 2015


The exception seems to indicate that your adapter was not proprerly
installed.

Make sure that you can see the following file underneath your Wildfly 9
home directory (where you deploy your third party app):

modules/system/layers/base/org/keycloak/keycloak-adapter-core/main/keycloak-adapter-core-1.5.0.Final.jar


It should be there as a result of properly unpacking
keycloak-wf9-adapter-dist-1.5.0.Final.zip
<http://www.redhat.com/j/elqNow/elqRedir.htm?ref=http://downloads.jboss.org/keycloak/1.5.0.Final/adapters/keycloak-wf9-adapter-dist-1.5.0.Final.zip>
into
your Wildfly 9.

I suppose your mentioning keycloak-appliance-dist-all-1.1.0.Final is a
reference to a version that used to work for you some time ago, and not
what you're using now.



On Wed, Oct 14, 2015 at 4:36 AM, Harish Kumar <harish_k_s007 at yahoo.com>
wrote:

> I was trying out examples from keycloak 1.5.0, specifically i was trying
> third-party
> example. Same example worked fine while i took distribution
> (keycloak-appliance-dist-all-1.1.0.Final)
> I did following steps.
>
> 1. Installed keycloak 1.5.0
> 2. Set third-party client with valid redirect URL as /oauth-client/*
> 3. Keycloak Json mentioned below (towards end of that email)
> 4. Initially when i deployed then i got error (No class definition error
> :Lorg/keycloak/servlet/ServletOAuthClient)
>    then added files from keycloak-wf9-adapter-dist-1.5.0.Final.zip
> <http://www.redhat.com/j/elqNow/elqRedir.htm?ref=http://downloads.jboss.org/keycloak/1.5.0.Final/adapters/keycloak-wf9-adapter-dist-1.5.0.Final.zip>
> .
> 5. After that application could deploy but when i type
> http://localhost:8080/oauth-client/ and click on "pull data"
>    then getting error.  I would appreciate if you could pls let me know
> how this error can be fixed ?
>     Any module missing ?
>
>  javax.servlet.ServletException: java.lang.NoClassDefFoundError:
>  org/keycloak/adapters/ServerRequest$HttpFailure
>
>  org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
>
>  org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:777)
>  org.apache.jsp.redirect_jsp._jspService(redirect_jsp.java:63)
>  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:69)
>  javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>
>  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:366)
>  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)
>  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)
>  javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>
>  io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:86)
>
>
> *Keycloak json*
> {
>   "realm": "demo",
>   "realm-public-key":
> "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuPt1q5aq8xZGUZVHAwj7xW6vJ20qk/awf6kK6NqQ2CvblWoSYyZOeLF+NpGue3Wn5r4ImKVUST89wPMrO83Y5st31Zpe4kZKoe8kvUj7tI6eeRrUsEsUWwpZ6I5yR5uVgj+8hJ9TaZQNAgB8zK0FvAxmu5bO+mq7c6eDEsYbcuMt3X+VZrkD36toaWM+gXPqziVkiNxp8DdS2TB8EN2J+MBGQRkbG6t6zdVMF0XrWpoT2UeMeFQ05I5lk1mlVupa6TJCpeH7sZBL2pgR+6TRDhViShur5PZUepHayS45PjPYPMsejfGZInRjHl/aqGcRK8YkXPjVDqPSp0xIa/QXYwIDAQAB"
> ,
>   "auth-server-url": "http://localhost:8080/auth",
>   "ssl-required": "external",
>   "resource": "third-party",
>   "credentials": {
>     "secret": "7269abc3-4de8-4be7-b881-8c3fcacf4ef4"
>   }
> }
>
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20151014/a1b36988/attachment.html 


More information about the keycloak-user mailing list