[keycloak-user] Spring boot 2.1.8 and keycloak 7 fails to start (HttpSessionManager.class] conflict)

nino martinez wael nino.martinez.wael at gmail.com
Thu Oct 3 06:48:57 EDT 2019


Yay (monolog continues), I was able to create a bug report here:
https://issues.jboss.org/browse/KEYCLOAK-11624

On Thu, Oct 3, 2019 at 8:46 AM nino martinez wael <
nino.martinez.wael at gmail.com> wrote:

> I've tried to create a jira issue but, there are some troubles with my
> redhat / keycloak jira account. I could not find an existing issue.
>
> Quickstart:
> https://github.com/nmwael/blog/tree/master/keycloak_7_spring_boot_2
>
>
> Failure message, which seems to have been a problem before:
>   .   ____          _            __ _ _
>  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
> ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
>  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
>   '  |____| .__|_| |_|_| |_\__, | / / / /
>  =========|_|==============|___/=/_/_/_/
>  :: Spring Boot ::        (v2.1.8.RELEASE)
>
>
>
> ***************************
> APPLICATION FAILED TO START
> ***************************
>
> Description:
>
> The bean 'httpSessionManager', defined in class path resource
> [com/johannesinnerbichler/personapp/SecurityConfig.class], could not be
> registered. A bean with that name has already been defined in URL
> [jar:file:/C:/Users/m24669/.m2/repository/org/keycloak/keycloak-spring-security-adapter/7.0.0/keycloak-spring-security-adapter-7.0.0.jar!/org/keycloak/adapters/springsecurity/management/HttpSessionManager.class]
> and overriding is disabled.
>
> Action:
>
> Consider renaming one of the beans or enabling overriding by setting
> spring.main.allow-bean-definition-overriding=true
>
>
> Process finished with exit code 1
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>


-- 
Best regards / Med venlig hilsen
Nino Martinez


More information about the keycloak-user mailing list