Change Tomcat Server's timeout in Eclipse

前端 未结 10 1900
一向
一向 2020-11-29 19:57

When I try to run my Tomcat I get a message:

Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds. If the server requires more time,          


        
相关标签:
10条回答
  • 2020-11-29 20:26

    The issue is also created if you have setup breakpoints in the code and trying to start tomcat in debug mode post some code overhaul.

    Solution is to clear all the breakpoints.

    0 讨论(0)
  • 2020-11-29 20:27
    1. Go to server View
    2. Double click the server for which you want to change the time limit
    3. On the right hand side you have timeouts dropdown tab. Select that.
    4. You then have option to change the time limits.

    enter image description here

    0 讨论(0)
  • 2020-11-29 20:27

    I have tomcat 8 Update 25 and tomcat 7 but facing the same issue it shows the message 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.

    0 讨论(0)
  • 2020-11-29 20:31

    This problem can occur if you have altogether too much stuff being started when the server is started -- or if you are in debug mode and stepping through the initialization sequence. In eclipse, changing the start-timeout by 'opening' the tomcat server entry 'Servers view' tab of the Debug Perspective is convenient. In some situations it is useful to know where this setting is 'really' stored.

    Tomcat reads this setting from the element in the element in the servers.xml file. This file is stored in the .metatdata/.plugins/org.eclipse.wst.server.core directory of your eclipse workspace, ie:

    //.metadata/.plugins/org.eclipse.wst.server.core/servers.xml

    There are other juicy configuration files for Eclipse plugins in other directories under .metadata/.plugins as well.

    Here's an example of the servers.xml file, which is what is changed when you edit the tomcat server configuration through the Eclipse GUI:

    Note the 'start-timeout' property that is set to a good long 1200 seconds above.

    0 讨论(0)
  • 2020-11-29 20:37

    Windows->Preferences->Server

    Server Timeout can be specified there.

    or another method via the Servers tab here:

    http://henneberke.wordpress.com/2009/09/28/fixing-eclipse-tomcat-timeout/

    0 讨论(0)
  • 2020-11-29 20:43

    Double click on server and see the timeouts section and add more time look at the picture

    0 讨论(0)
提交回复
热议问题