Original: Error launching Tomcat: Agent throws Exception: Java.rmi.server.ExportException:Port already in use:1099 solution
I. Description of the problem
As soon as the company starts the Tomcat server in IntelliJ idea, the error that appears is as follows:
Error: agent throws exception error: Java.rmi.server.ExportException:Port already in use:1099; nested exception is:java.net.BindExcep Tion:address already in Use:jvm_bind
It says that port 1099 is occupied by other processes.
Two. Workaround
Find the process that occupies port 1099, go to Windows command, see what process is consuming 1099 ports
Use the command:netstat-aon|findstr 1099 to find the process that occupies port 1099, as shown in:
Then close the process that occupies the port: taskkill-f-pid 3756
This will allow Tomcat to start normally.
Error launching Tomcat: Agent throws Exception: Java.rmi.server.ExportException:Port already in use:1099 solution