Change Tomcat Server's timeout in Eclipse
EclipseTomcatEclipse Problem Overview
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, try increasing the timeout in the server editor.
Where is this server editor? I didn't find it in windows preference server.
I am using Eclipse 3.6.
Eclipse Solutions
Solution 1 - Eclipse
Open the Servers view -> double click tomcat -> drop down the Timeouts section
There you can increase the startup time for each particular server.
Solution 2 - Eclipse
- Go to server View
- Double click the server for which you want to change the time limit
- On the right hand side you have timeouts dropdown tab. Select that.
- You then have option to change the time limits.
Solution 3 - Eclipse
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.
Solution 4 - Eclipse
Solution 5 - Eclipse
> 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/
Solution 6 - Eclipse
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.
Solution 7 - Eclipse
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.
Solution 8 - Eclipse
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
/
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.
Solution 9 - Eclipse
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.
Solution 10 - Eclipse
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.