Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds

Tags:

eclipse

tomcat

I have 2 projects in eclipse. One of them runs fine and when added to Tomcat server, server can restart without any problems. However, the other project gets error when added

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.

I don't believe it's a timeout issue as I've changed time to no avail. Is there other settings/places I should be looking for errors?

This is console output for project that successfully starts vs one that doesn't

INFO: Initializing Coyote HTTP/1.1 on http-8080
24-Jun-2011 15:17:38 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 472 ms
24-Jun-2011 15:17:38 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
24-Jun-2011 15:17:38 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
24-Jun-2011 15:17:39 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
24-Jun-2011 15:17:39 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
24-Jun-2011 15:17:39 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
24-Jun-2011 15:17:39 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
24-Jun-2011 15:17:39 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47  config=null
24-Jun-2011 15:17:39 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1332 ms

One that fails:

INFO: Initializing Coyote HTTP/1.1 on http-8080
24-Jun-2011 15:18:34 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 425 ms
24-Jun-2011 15:18:34 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
24-Jun-2011 15:18:34 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18

Has anyone any idea on what could be stopping this from running?

like image 383
En-Motion Avatar asked Jun 24 '11 13:06

En-Motion


People also ask

Why my Apache Tomcat server is not starting?

Most common issue with Tomcat note starting is that Java is not configured properly, user trying to start Tomcat does not have permissions to do so, or another program is using port 8080 on that server.

How do I access Tomcat on localhost?

Use a browser to check whether Tomcat is running on URL http://localhost:8080 , where 8080 is the Tomcat port specified in conf/server. xml. If Tomcat is running properly and you specified the correct port, the browser displays the Tomcat homepage.

How do I change my server timeout?

In the Server Properties dialog, select the Timeouts tab. In the Time Out field, adjust the length of time (in seconds) that the connection can be idle (default is 600 seconds).


1 Answers

Where did you change the time for the timeout?

In eclipse:

  • open your servers view
  • doubleclick on the server
  • check Timeouts (add a big number for Start)
like image 92
Fortega Avatar answered Oct 02 '22 08:10

Fortega