Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat in Eclipse: It runs but time out during startup anyway

I'm running a java web app in Eclipse (Helios) using Tomcat 7. The server startups up successfully (duration indicated) however Eclipse's progress bar still spins saying that Tomcat is starting up. Eventually the timeout is reached and an error is thrown.

I believe Tomcat is fine as I've taken the command that it uses and ran it manually in the shell. Tomcat runs fine and I'm able to hit the web app at the expected URL. I can also hit it after it's started up and before the timeout occurs.

I've reinstalled Eclipse, I ran it with clean, I deleted/recreated the server. Nothing has worked. Anybody have any clues?

like image 753
pschang Avatar asked Feb 05 '11 05:02

pschang


1 Answers

I had this issue, it seems that the Eclipse calls the application url after start up to make sure it is running.

A proxy client (pshione) had changed the system proxy so the eclipse could not call the start page and thinks that the application is not starting yet!!

I removed the proxy and it works fine now!

Edited:

This can also happen when you start your tomcat with SSL, but the ssl certification is not valid. When you make a call to and invalid SSL certification site, some browser confirm if you want to go one or not, but eclipse can not connect to your invalid ssl site! I suggest test your site with normal http instead of https.

like image 189
Alireza Fattahi Avatar answered Oct 31 '22 18:10

Alireza Fattahi