How to fix Eclipse Tomcat not starting in 45 seconds

Generally this error indicates that there is some issue with Tomcat Server configuration in Eclipse. Best way to fix this would be to completely remove server and its reconfiguration and add it again to Eclipse.

Steps below will describe how to accomplish this.

1. Open the Servers Tab from Windows>Show View>Servers menu

Sansa Technology Professional Training - Fixing Tomcat issue with Eclipse

2. Right click on the server and delete it

Sansa Technology Professional Training - Fixing Tomcat issue with Eclipse

3. Create a new server by going New>Server on Server Tab

Sansa Technology Professional Training - Fixing Tomcat issue with Eclipse

4. Click on “Configure runtime environments…” link

Sansa Technology Professional Training - Fixing Tomcat issue with Eclipse

5. Select the Apache Tomcat v7.0 server and remove it. This will remove the Tomcat server configuration. This is where many people do mistake – they remove the server but do not remove the Runtime environment.

Sansa Technology Professional Training - Fixing Tomcat issue with Eclipse

 

Sansa Technology Professional Training - Fixing Tomcat issue with Eclipse

6. Click on OK and exit the screen above now.

7. From the screen below, choose Apache Tomcat v7.0 server and click on next button:

Sansa Technology Professional Training - Fixing Tomcat issue with Eclipse

8. Browse to Tomcat Installation Directory

Sansa Technology Professional Training - Fixing Tomcat issue with Eclipse

9. Click on Next and choose which project you would like to deploy:
Sansa Technology Professional Training - Fixing Tomcat issue with Eclipse

10. Click on Finish after Adding your project

Sansa Technology Professional Training - Fixing Tomcat issue with Eclipse

11. Now launch your server. This will fix your Server timeout or any issues with old server configuration. This solution can also be used to fix “port update not being taking place” issues.

Advertisements

About sansatechnology

Sansa Technology is an IT staffing, Consulting and Training company located in the heart of Silicon Valley. If you are a consultant looking for your new gig, send us your resume to us. If you are looking for training in the field of White Box Testing, Java, Java EE, Selenium, DevOps, Android and others, connect with us as well. Visit us at www.sansatechnology.com or email contact@sansatechnology.com
This entry was posted in Computers and Internet. Bookmark the permalink.

16 Responses to How to fix Eclipse Tomcat not starting in 45 seconds

  1. Vladimir Jotov says:

    The presented scenario does not show how to solve the 45 sec issue on slow machines or for huge projects (that require minutes of compilation).

    The correct approach is just to increase the startup timeout parameter of server configuration (for example up to 600 seconds), what I don’t see in the article!

  2. bubuzzz says:

    Tomcat takes time to start because it has to load your libarary into the run time environment. If your web app contains many libararies, tomcat still takes more time to run, even with the new tomcat. So, it is better to configure the timeout of tomcat instead of removing the server

  3. santosh says:

    thanks it helped……..

  4. Sumeet says:

    I have followed these steps but still get the error “Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.”. Any solution?

  5. Hutashan says:

    Steps:-
    1) Open console
    2)Servers
    3) Click to server
    4) Timeout setting

  6. Dirk says:

    You should think about renaming your topic since it does not really describe how to fix the “could not start within 45s”-problem! The correct anwser would be to increase the timeout!

  7. Yemi says:

    Nice one

  8. manish says:

    when i am doing right click on the server there is no window is open to delete the server

  9. krishna says:

    Double click on your desired server(tomcat) in the server-option ,
    It will open the window and Right corner of the Window Timeout option is there and change time to 300. it will work 🙂

  10. you can increase the timeout value this way but it does not matter at all … so still I am looking for an answer …

  11. samantha says:

    thnx it helped me 🙂

  12. chakri says:

    Super explanation, it helped me thank u

  13. Adam says:

    Perfect, that fixed my problem. I agree with others, if the project is large then just simply increase the timeout setting. Mine was not though and should only take a few seconds to load, as it does now.

  14. Zeeshan Siddiqui says:

    thanks alot

  15. orlando says:

    cool my friends ,,, you are genius

  16. it worked, thank u very much

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s