reset password
Author Message
ashasabeer
Posts: 55
Posted 15:11 Oct 29, 2010 |

All of a sudden i am getting below error"

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 restarted eclipse and laptop ,but still i am getting the same error.

 

Please advice

Thanks Asha

 

cysun
Posts: 2935
Posted 15:22 Oct 29, 2010 |

My guess it that the port 8080 is taken by another process. If you didn't install anything new, this may be caused by a background Tomcat process that was not shut down properly by Eclipse due to some errors. To fix this, first exit Eclipse, then in the Processes tab of Windows Task Manager, terminate the processes with names like "java.exe", "javaw.exe", or "eclipse". Then restart Eclipse and try again.

ashasabeer
Posts: 55
Posted 15:31 Oct 29, 2010 |

I didnt installed anything new. After exiting  Eclipse i didnt find any process names like "java.exe", "javaw.exe",.

Again i restarted eclipse .but still i am getting the same error.

cysun
Posts: 2935
Posted 15:37 Oct 29, 2010 |

What's the error message in the Console view when you tried to run the project in Eclipse?

ashasabeer
Posts: 55
Posted 15:50 Oct 29, 2010 |

Oct 29, 2010 3:46:42 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: C:\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Java/jre6/bin/client;C:/Java/jre6/bin;C:/Java/jre6/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Broadcom\Broadcom 802.11\Driver;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Java\jdk1.6.0_21\bin;C:\Program Files (x86)\PostgreSQL\8.4\bin;C:\Development\apache-tomcat-6.0.29\lib\postgresql-8.4-702.jdbc4.jar;

Oct 29, 2010 3:46:42 PM org.apache.tomcat.util.digester.SetPropertiesRule begin

WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:csns' did not find a matching property.

Oct 29, 2010 3:46:42 PM org.apache.coyote.http11.Http11Protocol init

INFO: Initializing Coyote HTTP/1.1 on http-8080

Oct 29, 2010 3:46:42 PM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 524 ms

Oct 29, 2010 3:46:42 PM org.apache.catalina.core.StandardService start

INFO: Starting service Catalina

Oct 29, 2010 3:46:42 PM org.apache.catalina.core.StandardEngine start

INFO: Starting Servlet Engine: Apache Tomcat/6.0.29

Oct 29, 2010 3:46:44 PM org.apache.catalina.core.ApplicationContext log

INFO: Set web app root system property: 'csns.root' = [C:\Development\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\csns\]

Oct 29, 2010 3:46:44 PM org.apache.catalina.core.ApplicationContext log

INFO: Initializing log4j from [C:\Development\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\csns\WEB-INF\classes\log4j.xml]

Oct 29, 2010 3:46:44 PM org.apache.catalina.core.ApplicationContext log

INFO: Initializing Spring root WebApplicationContext

Oct 29, 2010 3:46:47 PM org.apache.catalina.core.ApplicationContext log

INFO: Initializing Spring FrameworkServlet 'csns'

Oct 29, 2010 3:46:49 PM org.apache.coyote.http11.Http11Protocol start

INFO: Starting Coyote HTTP/1.1 on http-8080

Oct 29, 2010 3:46:49 PM org.apache.jk.common.ChannelSocket init

INFO: JK: ajp13 listening on /0.0.0.0:8009

Oct 29, 2010 3:46:49 PM org.apache.jk.server.JkMain start

INFO: Jk running ID=0 time=0/17 config=null

Oct 29, 2010 3:46:49 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 6322 ms

cysun
Posts: 2935
Posted 15:52 Oct 29, 2010 |
ashasabeer wrote:
...

INFO: Server startup in 6322 ms

Well, so the server started properly.

ashasabeer
Posts: 55
Posted 15:59 Oct 29, 2010 |

yes ,but i am getting  error

Several ports (8080, 8009) required by Tomcat v6.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s)."

 

i couldnt figure out why.i dint install anything new .How to find this out?

Attachments:
cysun
Posts: 2935
Posted 16:01 Oct 29, 2010 |
ashasabeer wrote:

yes ,but i am getting  error

Several ports (8080, 8009) required by Tomcat v6.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s)."

 

i couldnt figure out why.i dint install anything new .How to find this out?

Exit Eclipse. Post a screenshot of your Windows Task Manager showing the Processes tab.

ashasabeer
Posts: 55
Posted 16:07 Oct 29, 2010 |

Attached Screen shot

Attachments:
cysun
Posts: 2935
Posted 16:09 Oct 29, 2010 |
ashasabeer wrote:

Attached Screen shot

Click on Image Name so the processes are sorted alphabetically.

Also run "netstat -a" from command prompt and post the results.

ashasabeer
Posts: 55
Posted 16:20 Oct 29, 2010 |

attached the screen shot

cysun
Posts: 2935
Posted 16:26 Oct 29, 2010 |
ashasabeer wrote:

attached the screen shot

Both screenshots only show partial results so I'm not sure. In the Task Manager, check if there's a Tomcat process (which would appear after the Skype process). In the output of netstat, look for a line that contains port 8080.

Last edited by cysun at 16:27 Oct 29, 2010.
ashasabeer
Posts: 55
Posted 16:36 Oct 29, 2010 |

Prof,

I checked ,but couldnt find .Attched full sceen shot

cysun
Posts: 2935
Posted 16:46 Oct 29, 2010 |
ashasabeer wrote:

Prof,

I checked ,but couldnt find .Attched full sceen shot

I couldn't find anything wrong either. If you are on campus, you can bring your laptop to my office. I'll be here until about 5:15.

One more thing you can try is restarting the computer - this will fix the problem if it's caused by a zombie Tomcat process, but it won't help if another service is taking up the port.