sushmita ghosh
sushmita ghosh

Reputation: 11

can't start Tomcat server inside Eclipse IDE

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

Answers (2)

Barshi
Barshi

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

James Jithin
James Jithin

Reputation: 10565

The error says that the port is already in use. There are two options;

Change tomcat port

  1. Double click on Tomcat server instance and edit the port Tomcat Properties
  2. Save the settings

Identify program running on port

  • On Windows
    1. Open Run prompt. Type Windows + R
    2. Type perfmon /res and press OK
    3. On Resource Monitor, on Network tab, look for the port under Listening Ports Resource Monitor
  • On Linux

    1. Execute netstat -tulpn | grep :<port>, e.g. netstat -tulpn | grep :8080
  • Find the process and kill it.

Update

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

Related Questions