Richard
Richard

Reputation: 582

Tomcat in Eclipse remains starting/synchronized but is actually running

I'm having the following problem with Eclipse 3.7 and Tomcat 7.0.8: I've added my Tomcat with a deployment descriptor in my Eclipse. I've enabled "Use Tomcat installation" in the server settings and tried to start it. The Console in Eclipse says "Server started up in 70s", I can access my application, but the servers state remains "Starting/Synchronized". As a result sooner or later the configured timeout is triggered and I'm getting an error.

Why is Eclipse not recognizing that the server was started successfully?

I've also tried to reinstall Eclipse and Tomcat - no positive changes. Also adding a clean, fresh downloaded Tomcat results in the same "error".

Any suggestions? Richard

Upvotes: 4

Views: 7210

Answers (2)

Vpn_talent
Vpn_talent

Reputation: 1436

Steps That I tried and get project up and running.

  1. Delete Eclipse Tomcat
  2. Reconfigure It
  3. Add tomcat to Build path
  4. Project -> Clean
  5. Tomcat -> Clean
  6. Run the Project

Upvotes: 0

Juha Palomäki
Juha Palomäki

Reputation: 27062

Try changing the HTTP port from the server configuration screen. For example if you previously had 8080, try changing it to 8090. This should automatically update the new port number to server.xml.

server configuraton

I started running into the same problem after I had been modifying the server port directly in server.xml. Changing the ports back to what they had been did not seem to solve the problem. It looked like the server pluging and actual configuration got somehow out of sync.

Upvotes: 4

Related Questions