I am getting below error in prod mode for (Java8+Oauth2+MySql+Hazelcast+no clustered http sessions) combination. Dev mode has worked fine.
Unable to register MBe
I solved this kind of problem by setting different value of spring.jmx.default-domain property for each Spring applications on my Tomcat like:
spring.jmx.default-domain
spring.jmx.default-domain=somevalue
in application.properties file.