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.
<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.
"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).
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.
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
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.
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
to check it:
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
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
- Tomcat Server not starting with in 45 seconds
- Tomcat server is not starting as service: %1 is not a valid Win32 application
- Eclipse : Starting tomcat server from eclipse , does not start the deployed wars
- Not able to run a simple JSP program in Eclipse with Tomcat server 7 in browser
- Tomcat server 9.0 not starting in eclipse It showing error "Server Tomcat v9.0 Server at localhost failed to start."
- Tomcat server not starting when adding a specific servlet
- Tomcat server not running in eclipse with project
- Eclipse's Tomcat Server will not start after updating Spring framework version with Maven
- Tomcat Server Not Starting from Eclipse Oxygen in Mac
- Tomcat server does not start with DCEVM patched JRE
- Eclipse Tomcat Server starting but code is not getting deployed
- Having trouble with starting tomcat server in eclipse
- Tomcat 7.0.52 server not extracting war file(compressed file) in webapps to uncompressed format when using export with Eclipse
- Tomcat 7.0.25 is not starting with Eclipse Indigo
- why my external css file not loading with html file on my tomcat server
- Apache Tomcat Not Showing in Eclipse Server Runtime Environments
- Could not load the Tomcat server configuration
- Tomcat Not Starting Through Eclipse (Timeout)
- "could not find the yyy.apk" message in console while starting application with an android lib linked
- The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. on deploying to tomcat
- JBoss server 7.1 not starting in Eclipse Luna
- apache tomcat 9.x not working with eclipse & Java 10.0.1
- Tomcat not starting from eclipse
- When not to use this server location when using tomcat within Eclipse
- Apache Tomcat 9 Not Showing in Eclipse Server Runtime Environments
- Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds
- Eclipse maven-enabled web app references workspace projects, but those are not deployed when running Tomcat server
- Eclipse not starting tomcat-7 server in debug mode
- I am not able to add Tomcat Server again
- Eclipse Luna - Getting error - 'Could not publish server configuration for Tomcat v7.0 Server at localhost. Multiple Contexts have a path of "/abc"
More Query from same tag
- Problem with horizontal grey/gray bar when editing files in Eclipse 2019-09+
- What does this Eclipse error mean about my Android app?
- Missing artifact com.splunk:splunk:jar:22.214.171.124
- Maven downloads snapshots from from release URL when connected to VPN
- git ignore folder changes but still sync
- Error In Creating Android Application By Eclipse
- Eclipse Java 11 do not see external libs that were for older version (java 8)
- How does Eclipse show the startup interface so fast
- How to generate source code from avro schema in maven(eclipse)?
- Run JAR MainActivity using Android Application
- Java xslt not working when jared
- Command line tools not accessible from Eclipse on OSX
- Java, Eclipse, Packages, and files
- PushApps register and unregister menu buttons
- OSGI Beginners tutorials are outdated. Is there a new standard?
- EAR with EJB and WAR modules fails to deploy WAR dependencies
- How to add maven dependencies in Talend Open Studio
- How can I confirm that Eclipse content assist works in Corrosion?
- Eclipse Maven (m2e) doesn't search or download from central
- All my java projects are giving errors after installing new JRE in Eclipse
- Can you disable the cancel button in a jface wizard?
- Use external equinox jar for equinox container in Eclipse Project
- Show Context Menu With Short Click not Long Click
- How to install Proguard in Eclipse Juno for Android
- how to pass string array between classes in java
- Can I debug an application which is running on other eclipse instance?
- What's the project name of Eclipse 4.9?
- running java program written in Eclipse IDE that uses anltr3 grammars via command line
- c++ long int the same as int?
- "R cannot be resolved to a variable" after transferring Eclipse workspace from pc to mac