you need to check if your spring context have this statement

<property name="maxtotal" value="30"></property>

if your project has more than 7 daos won't work, because it won't create 8 connections.

my project:

<bean id="mysqldatasource" class="org.apache.commons.dbcp2.basicdatasource">
    <property name="driverclassname" value="com.mysql.jdbc.driver"></property>
    <property name="url" value="jdbc:mysql://localhost/(name of your schema)"></property>
    <property name="username" value="root"></property>
    <property name="password" value="root"></property>
    <property name="maxtotal" value="(numbers of dao)"></property>


it's jvm space capacity (heap and permanent area) issue in my case, it works after add argument config for tomcat server (run configuration, arguments).

-xms512m -xmx1536m -xx:maxpermsize=512m -djava.util.arrays.uselegacymergesort=true


is your browser making calls to the server while it is starting? if yes, you probably should close it e.g. if your browser is currently set to http://localhost, close it before attempting to start the server.


if you are trying to debug the application on server, just check out the breakpoints. you might had include the whole class as breakpoint. so remove that breakpoint.

this thing worked in my case when i was trying to debug.


nothing of the above helped me but setting:

as vm argument in the vm arguments tab of the tomcat server debug configuration settings solved the problem. (tomcat 8, windows 10, eclipse mars)


tomcat server not starting with in 45 seconds

right click on the configured server go to properties->select monitoring -> add ->http protocol 8080

after run server it will deploy.


i stoped the tomcat on the computer and started the service (tomcat) using the eclipse ide.


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.



  • start: 200
  • stop: 45

..and then window → preferences → general → network connection.

set "active provider" = manual (to mark all the checkboxes).


turns out that mysql wasn't running in my case. i've started mysql service, and it worked.


if you are using any databases such as oracle/mysql then first check this databases services are start


well, i tried all the solutions:

  • increasing timeout seconds;
  • deleting the server instance in eclipse along with the run config.

none of them worked.


  • there was no breakpoint in my code;
  • i don't use any antivirus.

i realized that some people - who had the same problem - were using eclipse helios (so was i).

i switched to eclipse kepler and it worked perfectly.

maybe it can be a solution. i wanted to use helios, but kepler is okay.


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:

shop project ref

if there is any mapping not available, then remove that <servlet> and <servlet-mapping> tag in web.xml.


i had the same problem i deleted the server from the server tab, and also the server folder under your eclipse workspace, restarted eclipse, set up a new server, and it appears to be running ok now.


just for knowledge.. also had the same issue and solved it stopping and starting again the mysql service... i think that was some conflict between mysql-service and tomcat.

good luck


in my case tomcat was configured to start not on localhost(guess it came from servers.xml connector entry) so eclipse fails to find it running after start. changed host name on servers tab to my ip.

had the same error message, though tomcat did start sucessfully, but then eclipse shuts it down.


if some one had the same issue like me about the timeout of the server where you can found it. this response can help you.

click on window > show view > server. when you are on the server, you will see the server that you have configured before. after that, right click on your server configuration, go to properties > general and click on switch location. after you clicking on "switch location", the server configuration will be appear on the package explorer of eclipse. then double click on the server file in the package explorer you will see where the timeout located.

thank you.


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.


try clean tomcat working directory,it works for me


i had tried increasing the server start up time for tomcat server, removed server and created new server, removed server and changed run-time environment configurations. those thing didn't work for me. at last, i found deployment descriptor(url pattern of servlet-mapping) is the one that making the trouble.


just remove or delete the server from eclipse and reconfigure it or add it again to eclipse.


folks, i had this same problem and tried raising the timeout, deleting the server and creating again and did not work. i was running eclipse kepler in linux. the solution proposed by @phoenix is what worked for me:

window -> preferences -> general -> network connections

set active providers in manual and then configure or not the proxy. i had this option in "native".

then i realized i had the variable http_proxy set. it was set in the ~/.bashrc file. this environment variable is the culprit of many problems.

once i set http_proxy to empty

export http_proxy=

to check it:

echo $http_proxy

i was able to leave option "active provider" in "native" and solve the timeout problem. this is useful because eclipse adopts the native configuration, in case you change it often.

in my case, where i had configured http_proxy in ~./bashrc, i had to close eclipse and even log out and log in again.


below worked for me.

removed all breakpoints. then did a clean on server as below.

right click on server-->click clean.


just go with below points. open eclipse windows -> show view -> server -> double click tomcat/press fn + f3 -> timeouts -> increase start time save setting and restart eclipse also delete .metadata folder from work space if you don't need check now... all the best


disabling my antivirus does the trick for me ...


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 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.


i know it's a bit late, but i've tried everything above and nothing worked. the real problem was that i'm using hibernate, so it was trying to connect to mysql but was not able, thats why it showed time out.

just to let u guys know, i'm using rds(amazon), so just to make a test i changed to my local mysql and it worked perfectly.

hope that this answer helps somebody.



in my case i was using spring+hibernate and forgot to run my mysql server due to which hibernate was not getting loaded and thus was throwing error


open the servers view -> double click tomcat -> drop down the timeouts section you can increase the startup time for each particular server. like 45 to 450


open servers view, open timeouts and set up start

add start


i got the solution for your requirement.

i'm also getting the same error in my eclipse luna.

go to window -> preferences.

then general -> network connections.

then select the active provider as manual.

then restart the tomcat and run. it will work.

hope it will help you.


try remove all breakpoints.also you can increase start up time.

open the servers view -> double click tomcat -> drop down the timeouts section

enter image description here

Related Query

More Query from same tag