In which version of Java are you using Tomcat7 under?
NB These are all assumptions - I have not been able to verify this yet
If it is Java6 (and I assume this is due to the fact that I am getting a similar problem), I suspect that this is due to the following message:
INFO: JSR 356 support for WebSocket (Java WebSocket 1.1) is not available when running on Java 6. To suppress this message, launch Tomcat on Java 7, delete WebSocket JAR files from $ CATALINA_HOME / lib, or add WebSocket JARs for tomcat.util.scan.DefaultJarScanner .jarsToSkip property in $ CATALINA_BASE / conf / catalina.properties. Please note that the obsolete Tomcat 7 WebSocket API will be available.
I can only fear that Spring Download JSR356 to tell the web application container "in addition to listening to the default port for the main application, and also listening to port X for the actuator endpoints" ... and this does not work under Java6 .. . Maybe I'm wrong.
If someone can confirm / reject this behavior, I will update this answer.
After installing Tomcat to use Java8 and removing socket boxes ( tomcat7-websocket.jar and websocket-api.jar jars), I get the following message from Spring :
osba.EndpointWebMvcAutoConfiguration: Could not start the built-in management container on another port (management endpoints are still accessible via JMX)
At the same time, the @DecipherX workaround (i.e., not setting management.port=9010 ) will output the endpoints of your actuator through the default port.
source share