Reputation: 11
I am getting the following error when I am trying to start my Tomcat server thanks in advance
SEVERE: Failed to initialize connector [Connector[HTTP/1.1-8080]]
org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8080]]
Caused by: java.net.BindException: Address already in use: JVM_Bind
Upvotes: 1
Views: 8131
Reputation: 389
What is did is : Eclipse -> Window -> Show View -> Servers -> DoubleClick on Tomcat Server -> Change admin port to "1" and leave the HTTP port to "8081" . Make sure to kill any processes which are running on port 8080. You will find your project on localhost:8081/java project name , Hope this will works!
Upvotes: 1
Reputation: 10565
The error says that the port is already in use. There are two options;
On Linux
netstat -tulpn | grep :<port>
, e.g. netstat -tulpn | grep :8080
Find the process and kill it.
Here, the user was facing issues with starting server even after changing the ports and the respective ports were not displayed as used. The user got it resolved by restarting the computer. User's operating system: Windows 7 Enterprise Service Pack 1
.
Upvotes: 5