[keycloak-user] AdapterDeploymentContextBean no default constructor

alex orl alex_orl1079 at yahoo.it
Tue Jan 5 08:47:17 EST 2016


thanks for answering...are there other out-of-date configuration instructions?thanks 

    Il Martedì 5 Gennaio 2016 13:35, Thomas Raehalme <thomas.raehalme at aitiofinland.com> ha scritto:
 

 Hi!
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:
<bean id="adapterDeploymentContextBean" class="org.keycloak.adapters.springsecurity.AdapterDeploymentContextBean">    <constructor-arg value="/WEB-INF/keycloak.json" /></bean>
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.
Best regards,Thomas

On Tue, Jan 5, 2016 at 2:25 PM, alex orl <alex_orl1079 at yahoo.it> wrote:


I'm working on kyecloak 1.7.0 final.I'm trying to integrate a new spring secured web application with keycloak sso mechanism.Following the last guide reference, specifically the chapter 8.10 i wrote a keycloak-security-context.xml containing the specified configuration.When i deploy application i get this error:


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.<init>()


Effectively AdapterDeploymentContextBean 

https://github.com/keycloak/keycloak/blob/1.7.x/integration/spring-security/src/main/java/org/keycloak/adapters/springsecurity/AdapterDeploymentContextBean.java

doesn't declare the default constructor.What am i missing?

_______________________________________________
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/20160105/83202498/attachment-0001.html 


More information about the keycloak-user mailing list