Most of the time I will test with cas-server-webapp and
cas-management-webapp on the same server which are both Spring Boot
applications in CAS 5. I know this is not typical when deploying these
applications as they usually are on different servers.
This results in the following exception:
...
2016-08-19 17:37:08,442 ERROR [org.springframework.boot.SpringApplication]
- <Application startup failed>
org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to
register MBean
[org.springframework.cloud.context.environment.EnvironmentManager@19480877]
with key 'environmentManager'; nested exception is
javax.management.InstanceAlreadyExistsException:
org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager
at
org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:625)
~[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at
org.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:550)
~[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
...
In src/main/resources/bootstrap.properties in both cas-server-webapp and
cas-management-webapp, the spring.jmx.default-domain is not set.
Could I suggest setting this value uniquely for both applications in
bootstrap.properties? Any reason not to do that? I can open an issue in
GitHub on it.
--
You received this message because you are subscribed to the Google Groups "CAS
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/c8daa79c-ba2e-4582-9a5e-9712823f1fbf%40apereo.org.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.