<div dir="ltr"><div>Hi!</div><div><br></div><div>I think the documentation is a bit out of date on this one. You should provide path to keycloak.json as the constructor argument, eg:</div><div><br></div><div><div>&lt;bean id=&quot;adapterDeploymentContextBean&quot; class=&quot;org.keycloak.adapters.springsecurity.AdapterDeploymentContextBean&quot;&gt;</div></div><div>    &lt;constructor-arg value=&quot;/WEB-INF/keycloak.json&quot; /&gt;</div><div>&lt;/bean&gt;</div><div><br></div><div>Also, please note that in the upcoming version 1.8.0.Final there will be a change regarding this configuration. The documentation has been updated to match the new code.</div><div><br></div><div>Best regards,</div><div>Thomas</div><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 5, 2016 at 2:25 PM, alex orl <span dir="ltr">&lt;<a href="mailto:alex_orl1079@yahoo.it" target="_blank">alex_orl1079@yahoo.it</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div style="color:rgb(0,0,0);font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div><br></div><div>I&#39;m working on kyecloak 1.7.0 final.</div><div>I&#39;m trying to integrate a new spring secured web application with keycloak sso mechanism.</div><div>Following the last guide reference, specifically the chapter 8.10 i wrote a keycloak-security-context.xml containing the specified configuration.</div><div>When i deploy application i get this error:<br></div><div><br></div><div><br></div><div dir="ltr">Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.keycloak.adapters.springsecurity.AdapterDeploymentContextBean]: No default constructor found; nested exception is java.lang.NoSuchMethodException: org.keycloak.adapters.springsecurity.AdapterDeploymentContextBean.&lt;init&gt;()</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">Effectively AdapterDeploymentContextBean <a href="https://github.com/keycloak/keycloak/blob/1.7.x/integration/spring-security/src/main/java/org/keycloak/adapters/springsecurity/AdapterDeploymentContextBean.java" target="_blank"><br></a></div><div dir="ltr"><br></div><div dir="ltr"><a href="https://github.com/keycloak/keycloak/blob/1.7.x/integration/spring-security/src/main/java/org/keycloak/adapters/springsecurity/AdapterDeploymentContextBean.java" target="_blank">https://github.com/keycloak/keycloak/blob/1.7.x/integration/spring-security/src/main/java/org/keycloak/adapters/springsecurity/AdapterDeploymentContextBean.java</a><br></div><div><br></div><div dir="ltr">doesn&#39;t declare the default constructor.</div><div dir="ltr">What am i missing?<br></div></div></div><br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br><br clear="all"><div><br></div>
</div></div>