Suggestion: Setting spring.jmx.default-domain To Unique Values For cas-server-webapp and cas-management-webapp For CAS 5

931 views
Skip to first unread message

William

unread,
Aug 19, 2016, 5:43:46 PM8/19/16
to CAS Community
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.

Misagh Moayyed

unread,
Aug 19, 2016, 5:52:06 PM8/19/16
to CAS Community
I can’t think of a good reason to not do that. By all means, create an issue. 

-- 
Misagh
--
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 cas-user+u...@apereo.org.
To post to this group, send email to cas-...@apereo.org.
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.
Reply all
Reply to author
Forward
0 new messages