When I execute netstat -tupan
, one of the entries is the following:
tcp 0 0 :::1099 :::* LISTEN 8778/java
However, I have removed all settings concerning RMI and JMX from the options passed to Java when it starts. My questions are:
Edit: I blocked the port using netcat: nc -l 1099
. This prompted an error on the application startup, and it turns out that I have an MBean in the application which was automatically picked up by Spring on startup and registered.
Here is the steps to trace the issue:
java.net.BindException: Address already in use
exception is thrown by the class that tries to listen on port 1099.You can work on the issue based on the clue.