Server Tomcat v7.0 Server at localhost was unable to start within 101 seconds. If the server requires more time, try increasing the timeout in the server edit
I was too facing similar issue and here I found another solution for it.
I have just started Eclipse Luna and not developed/deployed any project yet. I tried adding Tomcat v7.0 Server
and got same error.
In order to resolve the issue I went to Server Perspective
(it's actually server tab next to the console tab located below Project
code). Double click on Server which is added to Eclipse. It will open up Overview page. Look for Server Location and select Use workspace metadata(does not modify Tomcat location). Now restart the Server and error will go away.
Server > (double click) Tomcat v7.0 Server at localhost > (Overview page) Server Location > Select -- Use workspace metadata(does not modify Tomcat location).
URL pattern of <servlet-mapping>
:
Check project explorer → Deployment descriptor → Servlet Mapping → check that all mapping present in controller package. ref. image as below:
if there is any mapping not available, Then remove that <servlet>
and <servlet-mapping>
tag in web.xml
.
Try remove all breakpoints.Also you can increase start up time.
Open the Servers view -> double click tomcat -> drop down the Timeouts section
If you are running into this on Mac and you installed Tomcat using brew
, one good way to get round that is to install Tomcat using a zip file instead.
Go here, download a zip file, unzip it, and in Eclipse, create a new server and specify "Tomcat installation directory" as the unzipped file.
I also had the issue of the Eclipse Tomcat Server timing out and tried every suggestion including:
Nothing worked until I read a comment on a related issue and realized that I had 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 as it usually did.
None of the above worked for me but this - 1. Remove any project if configured already while installing Tomcat. 2. Right click on configured server -> clean and -> Clean tomcat working directory
Did couple of times and the issue resolved. Thanks.