I try to launch a web application with IntelliJ IDEA, but I get an error: localhost:1099 already in use
.
I checked the port 1099 with lsof -i:1099
and many other relative commands, so I'm pretty sure the port 1099 is free.
This is my running configuration:
I've also changed the JMX port
to 6666 & 6667 & 6668... and it doesn't work, so I think it's not really related to the port itself.
I am so confused... did anyone else have this problem?
Any help is appreciated
To stop a process, you can use ⌘F2 on macOS, or Ctrl+F2 on Windows/Linux.
The port appears in the console when you start the app. I can see it via my endpoints tab (Appears next to Console) and then under the beans tab.
We're going to create a small web application that runs on Tomcat to demonstrate the integration in IntelliJ IDEA Ultimate: From the Welcome Screen select New Project. If you have an existing project open, click File > New.
Since it is easy to tackle with Command Prompt. You can do the following. I assume you work on Windows.
Open the CMD and type following.
netstat -aon | find "1099"
If a process uses above port, it should return something output like this.
TCP xxx.xx.xx.xx:1099 xx.xx.xx.xxx:443 ESTABLISHED 2222
The last column value (2222) is referred to the Process ID (PID).
Just KILL it as follows.
taskkill /F /PID 2222
Now you can start your server.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With