[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 02:46:40 EDT 2019
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
More information about the keycloak-user
mailing list