Change Tomcat Server's timeout in Eclipse

前端 未结 10 1901
一向
一向 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:43

    double click tomcat , see configure setting with "timeout" modify the number. Maybe this not the tomcat error.U can see the DB connection is achievable.

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

    SOLVED: That's it!!!! For me was compiling with JDK6 but running Tomcat with JDK7, WST uses the system properties and not the eclipse settings. I also configure the same JDK Version in eclipse and in System (check it with java -version in cmd line)

    Details: I try to configure eclipse like describe here, but it didn´t solve the problem, then I notice in eclipse´s error log that tomcat was started with jre 1.7. in spite of my configurations.

    I also try, in cmd line, 'java -version' and obtained '1.7' instead of expected '1.6'.

    I also decide to configure java 1.6 (like in eclipse) in system panel but it didn´t solve the problem. I also desinstall jre 1.7 restart eclipse AND IT SUCCESS!.. It was a very usefull clue, thank you.

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

    Open the Servers view -> double click tomcat -> drop down the Timeouts section

    There you can increase the startup time for each particular server.

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

    I also had the issue of the Eclipse Tomcat Server timing out and tried every suggestion including:

    • increasing timeout seconds
    • deleting various .metadata files in workspace directory
    • deleting the server instance in Eclipse along with the Run Config

    Nothing worked until I read Rohitdev's comment and realized that I had, in fact added a breakpoint in an interceptor class after a big code change and had forgotten to toggle it off. I removed it and all other breakpoints and Tomcat started right up.

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