title: Tomcat Not Starting Through Eclipse (Timeout)
body: <p>I am trying to run Tomcat through Eclipse. This is something that I have done for the past several years. It was working yesterday and now it is not. The error I get is</p>
  <pre><code>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.
  </code></pre>
  <p>The Output is</p>
  <pre><code>Jul 06, 2012 8:32:26 PM org.apache.catalina.core.AprLifecycleListener init
  INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jdk1.7.0_05\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;D:\Launch;D:\Program Files\Java\jdk1.7.0_05\bin;%PROGRAMFILES%\Internet Explorer;C:\Program Files (x86)\SMLNJ\bin\;D:\Program Files\TortoiseSVN\bin;C:\ghc\ghc-6.6\bin;D:\Program Files\MySQL\MySQL Server 5.5\bin;%ANT_HOME%/bin;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;D:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;D:\Program Files (86x)\;.
  Jul 06, 2012 8:32:26 PM org.apache.coyote.AbstractProtocol init
  INFO: Initializing ProtocolHandler [&quot;http-bio-8080&quot;]
  Jul 06, 2012 8:32:26 PM org.apache.coyote.AbstractProtocol init
  INFO: Initializing ProtocolHandler [&quot;ajp-bio-8009&quot;]
  Jul 06, 2012 8:32:26 PM org.apache.catalina.startup.Catalina load
  INFO: Initialization processed in 468 ms
  Jul 06, 2012 8:32:26 PM org.apache.catalina.core.StandardService startInternal
  INFO: Starting service Catalina
  Jul 06, 2012 8:32:26 PM org.apache.catalina.core.StandardEngine startInternal
  INFO: Starting Servlet Engine: Apache Tomcat/7.0.28
  Jul 06, 2012 8:32:26 PM org.apache.catalina.startup.HostConfig deployDirectory
  INFO: Deploying web application directory D:\Program Files\Java\apache-tomcat-7.0.28\webapps\docs
  Jul 06, 2012 8:32:26 PM org.apache.catalina.startup.HostConfig deployDirectory
  INFO: Deploying web application directory D:\Program Files\Java\apache-tomcat-7.0.28\webapps\examples
  Jul 06, 2012 8:32:26 PM org.apache.catalina.core.ApplicationContext log
  INFO: ContextListener: contextInitialized()
  Jul 06, 2012 8:32:26 PM org.apache.catalina.core.ApplicationContext log
  INFO: SessionListener: contextInitialized()
  Jul 06, 2012 8:32:26 PM org.apache.catalina.core.ApplicationContext log
  INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@5710ddf9')
  Jul 06, 2012 8:32:26 PM org.apache.catalina.startup.HostConfig deployDirectory
  INFO: Deploying web application directory D:\Program Files\Java\apache-tomcat-7.0.28\webapps\host-manager
  Jul 06, 2012 8:32:26 PM org.apache.catalina.startup.HostConfig deployDirectory
  INFO: Deploying web application directory D:\Program Files\Java\apache-tomcat-7.0.28\webapps\manager
  Jul 06, 2012 8:32:26 PM org.apache.catalina.startup.HostConfig deployDirectory
  INFO: Deploying web application directory D:\Program Files\Java\apache-tomcat-7.0.28\webapps\ROOT
  Jul 06, 2012 8:32:26 PM org.apache.coyote.AbstractProtocol start
  INFO: Starting ProtocolHandler [&quot;http-bio-8080&quot;]
  Jul 06, 2012 8:32:26 PM org.apache.coyote.AbstractProtocol start
  INFO: Starting ProtocolHandler [&quot;ajp-bio-8009&quot;]
  Jul 06, 2012 8:32:26 PM org.apache.catalina.startup.Catalina start
  INFO: Server startup in 504 ms
  </code></pre>
  <p>I have looked around for a solution for several hours now. But I have not had any success and it likely is something simple. I have tried the following:</p>
  <ol>
  <li>Delete Serve and remake it in eclipse</li>
  <li>Restart computer, eclipse</li>
  <li>Reinstall eclipse, tomcat</li>
  <li>Start Eclipse with -clean</li>
  <li>Start server with no web app</li>
  <li>Increasing the timeout</li>
  </ol>
  <p>I am able to start tomcat from command line just fine. However, I need to run it through eclipse to debug. I am aware of<a href="https://stackoverflow.com/questions/8960350/tomcat-7-when-a-servlet-project-is-included-is-not-staring-within-45-seconds."> this SO post</a> and have gone through it and many others to no avail.</p>
  <p>Thoughts?</p>
  <p>UPDATE: I just realized that the server does start up. However, one of the final functions that eclipse does, fails. How I observed this is by setting the timeout to 10 min. I was able to access the server during that time, however not the debug functionality of eclipse. So Eclipse starts it up, tries do something, that something never completes, Eclipse shuts down Tomcat after that timeout period.</p>
  <p>UPDATE: Looking back at what happened around when this problem arose, the computer apparently installed a Java update.</p>