[keycloak-user] AdapterDeploymentContextBean no default constructor
Scott Rossillo
srossillo at smartling.com
Tue Jan 5 18:04:53 EST 2016
The documentation should be correct for current release builds.
Scott Rossillo
Smartling | Senior Software Engineer
srossillo at smartling.com
<http://www.sigstr.com/>
> On Jan 5, 2016, at 9:45 AM, Thomas Raehalme <thomas.raehalme at aitiofinland.com> wrote:
>
>
> On Jan 5, 2016 15:47, "alex orl" <alex_orl1079 at yahoo.it <mailto:alex_orl1079 at yahoo.it>> wrote:
> >
> > thanks for answering...
> > are there other out-of-date configuration instructions?
> > thanks
>
> Not that I know of.
>
> Best regards,
> Thomas
>
>
>
>
> > Il Martedì 5 Gennaio 2016 13:35, Thomas Raehalme <thomas.raehalme at aitiofinland.com <mailto: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 <mailto: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 <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 <mailto:keycloak-user at lists.jboss.org>
> >> https://lists.jboss.org/mailman/listinfo/keycloak-user <https://lists.jboss.org/mailman/listinfo/keycloak-user>
> >
> >
> >
> >
> >
> >
> _______________________________________________
> 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/094bc145/attachment.html
More information about the keycloak-user
mailing list