<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yiv7423924626"><div id="yui_3_16_0_1_1444849290270_17896"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;" id="yui_3_16_0_1_1444849290270_17895"><div class="yiv7423924626" id="yiv7423924626yui_3_16_0_1_1444849290270_5234">Thanks Marko for response. I checked keycloak-adapter-core-1.5.0.final.jar is present</div><div class="yiv7423924626" id="yiv7423924626yui_3_16_0_1_1444849290270_5234" dir="ltr">at ( /modules/system/layers/base/org/keycloak-adapter-core). </div><div class="yiv7423924626" id="yiv7423924626yui_3_16_0_1_1444849290270_5234"><br clear="none"></div><div class="yiv7423924626" id="yiv7423924626yui_3_16_0_1_1444849290270_5234">Few things i observed, Not sure if they are related just mentioning</div><div class="yiv7423924626" id="yiv7423924626yui_3_16_0_1_1444849290270_5234">#1. After 1.1, release httpcomponents (modules/org/apache) has changed jars from 4.2.</div><div class="yiv7423924626" id="yiv7423924626yui_3_16_0_1_1444849290270_5234">#2. No start() method for ServletOAuthClient ( it was there in Bootstrap.java in 1.1)</div><div class="yiv7423924626" id="yiv7423924626yui_3_16_0_1_1444849290270_5234"><br></div><div class="yiv7423924626" dir="ltr" id="yiv7423924626yui_3_16_0_1_1444849290270_5234">Pls let me know if i am missing anything ?</div> <br clear="none"><div class="yiv7423924626qtdSeparateBR" id="yui_3_16_0_1_1444849290270_18113">Thanks,</div><div class="yiv7423924626qtdSeparateBR" id="yui_3_16_0_1_1444849290270_17964">Harish<br clear="none"><br clear="none"></div><div class="yiv7423924626yqt2994325222" id="yiv7423924626yqt79517"></div></div></div></div><div class=".yiv7423924626yahoo_quoted"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr"> <font size="2" face="Arial"> On Wednesday, October 14, 2015 2:01 AM, Marko Strukelj <mstrukel@redhat.com> wrote:<br clear="none"> </font> </div> <br clear="none"><br clear="none"> <div class="yiv7423924626y_msg_container"><div id="yiv7423924626"><div><div dir="ltr">The exception seems to indicate that your adapter was not proprerly installed.<div><br clear="none"></div><div>Make sure that you can see the following file underneath your Wildfly 9 home directory (where you deploy your third party app):</div><div><br clear="none"></div><div>
<div class="yiv7423924626"><span class="yiv7423924626">modules/system/layers/base/org/keycloak/keycloak-adapter-core/main/keycloak-adapter-core-1.5.0.Final.jar</span></div><div class="yiv7423924626"><span class="yiv7423924626"><br clear="none"></span></div><div class="yiv7423924626"><span class="yiv7423924626">It should be there as a result of properly unpacking </span><span style="font-size:13px;color:rgb(0,0,0);font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"> </span><a rel="nofollow" shape="rect" target="_blank" href="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" style="color:rgb(51,102,153);text-decoration:none;font-size:12px;font-family:'Lucida Sans Unicode', 'Lucida Grande', sans-serif;white-space:nowrap;background-color:rgb(244,243,243);">keycloak-wf9-adapter-dist-1.5.0.Final.zip</a> into your Wildfly 9.</div><div class="yiv7423924626">I suppose your mentioning <span style="font-size:13px;color:rgb(0,0,0);font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;">keycloak-appliance-dist-all-</span><span style="font-size:13px;color:rgb(0,0,0);font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;">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.</span></div><div class="yiv7423924626"><span class="yiv7423924626"><br clear="none"></span></div></div></div><div class="yiv7423924626gmail_extra"><br clear="none"><div class="yiv7423924626gmail_quote">On Wed, Oct 14, 2015 at 4:36 AM, Harish Kumar <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:harish_k_s007@yahoo.com" target="_blank" href="mailto:harish_k_s007@yahoo.com">harish_k_s007@yahoo.com</a>></span> wrote:<br clear="none"><blockquote class="yiv7423924626gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv7423924626yqt3736923374" id="yiv7423924626yqt06605"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><div dir="ltr">I was trying out examples from keycloak 1.5.0, specifically i was trying third-party </div><div dir="ltr">example. Same example worked fine while i took distribution (keycloak-appliance-dist-all-1.1.0.Final)</div><div dir="ltr">I did following steps. <br clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr">1. Installed keycloak 1.5.0</div><div dir="ltr">2. Set third-party client with valid redirect URL as /oauth-client/*</div><div dir="ltr">3. Keycloak Json mentioned below (towards end of that email)</div><div dir="ltr">4. Initially when i deployed then i got error (No class definition error :Lorg/keycloak/servlet/ServletOAuthClient)</div><div dir="ltr"> then added files from <a rel="nofollow" shape="rect" target="_blank" href="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" style="color:rgb(51,102,153);text-decoration:none;font-size:12px;font-family:'Lucida Sans Unicode', 'Lucida Grande', sans-serif;white-space:nowrap;background-color:rgb(244,243,243);">keycloak-wf9-adapter-dist-1.5.0.Final.zip</a>.</div><div dir="ltr">5. After that application could deploy but when i type <a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://localhost:8080/oauth-client/">http://localhost:8080/oauth-client/</a> and click on "pull data"</div><div dir="ltr"> then getting error. I would appreciate if you could pls let me know how this error can be fixed ?</div><div dir="ltr"> Any module missing ?</div><div dir="ltr"><br clear="none"></div><div dir="ltr"><span style="font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;font-size:medium;"> javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/keycloak/adapters/ServerRequest$HttpFailure</span><br clear="none" style="font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;font-size:medium;"><span style="font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;font-size:medium;"> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)</span><br clear="none" style="font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;font-size:medium;"><span style="font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;font-size:medium;"> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:777)</span><br clear="none" style="font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;font-size:medium;"><span style="font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;font-size:medium;"> org.apache.jsp.redirect_jsp._jspService(redirect_jsp.java:63)</span><br clear="none" style="font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;font-size:medium;"><span style="font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;font-size:medium;"> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:69)</span><br clear="none" style="font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;font-size:medium;"><span style="font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;font-size:medium;"> javax.servlet.http.HttpServlet.service(HttpServlet.java:790)</span><br clear="none" style="font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;font-size:medium;"><span style="font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;font-size:medium;"> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:366)</span><br clear="none" style="font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;font-size:medium;"><span style="font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;font-size:medium;"> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)</span><br clear="none" style="font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;font-size:medium;"><span style="font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;font-size:medium;"> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)</span><br clear="none" style="font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;font-size:medium;"><span style="font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;font-size:medium;"> javax.servlet.http.HttpServlet.service(HttpServlet.java:790)</span><br clear="none" style="font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;font-size:medium;"><span style="font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;font-size:medium;"> io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:86)</span><br clear="none"></div><div dir="ltr"><span style="font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;font-size:medium;"><br clear="none"></span></div><div dir="ltr"><br clear="none"></div><div dir="ltr"><b><u>Keycloak json</u></b></div><div dir="ltr">{<br clear="none"></div><div><span> </span>"realm"<span>: </span><span>"demo"</span><span>,</span></div><div><span> </span><span>"realm-public-key"</span><span>: </span>"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuPt1q5aq8xZGUZVHAwj7xW6vJ20qk/awf6kK6NqQ2CvblWoSYyZOeLF+NpGue3Wn5r4ImKVUST89wPMrO83Y5st31Zpe4kZKoe8kvUj7tI6eeRrUsEsUWwpZ6I5yR5uVgj+8hJ9TaZQNAgB8zK0FvAxmu5bO+mq7c6eDEsYbcuMt3X+VZrkD36toaWM+gXPqziVkiNxp8DdS2TB8EN2J+MBGQRkbG6t6zdVMF0XrWpoT2UeMeFQ05I5lk1mlVupa6TJCpeH7sZBL2pgR+6TRDhViShur5PZUepHayS45PjPYPMsejfGZInRjHl/aqGcRK8YkXPjVDqPSp0xIa/QXYwIDAQAB"<span>,</span></div><div><span> </span><span>"auth-server-url"</span><span>: </span>"<a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://localhost:8080/auth">http://localhost:8080/auth</a>"<span>,</span></div><div><span> </span>"ssl-required"<span>: </span><span>"external"</span><span>,</span></div><div><span> </span><span>"resource"</span><span>: </span>"third-party"<span>,</span></div><div><span> </span>"credentials"<span>: {</span></div><div><span> </span><span>"secret"</span><span>: </span>"7269abc3-4de8-4be7-b881-8c3fcacf4ef4"</div><div> }</div><div dir="ltr">
</div><div dir="ltr">}</div><div dir="ltr"><br clear="none"></div><div dir="ltr"><br clear="none"></div></div></div></div><br clear="none">_______________________________________________<br clear="none">
keycloak-user mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:keycloak-user@lists.jboss.org" target="_blank" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br clear="none"></blockquote></div><br clear="none"></div></div></div><br clear="none"><br clear="none"></div> </div> </div> </div></div></body></html>