This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 199493

Summary: Tomcat 7 Timeout after 120 seconds
Product: serverplugins Reporter: phuey <phuey>
Component: TomcatAssignee: Petr Hejl <phejl>
Status: RESOLVED DUPLICATE    
Severity: normal Keywords: TOMCAT
Priority: P3    
Version: 7.0   
Hardware: PC   
OS: Other   
Issue Type: DEFECT Exception Reporter:

Description phuey 2011-06-17 09:58:48 UTC
Hi,

My environment is:

NB7 (Build 201104080000)
Tomcat 7.0.11
JDK 1.6.0_24 64Bit.
CentOS 5.5.

The issue I am encountering is a Tomcat timeout issues on start. The run window states: Starting Tomcat Process -- Waiting for Tomcat -- Starting of Tomcat failed.

I know that you can configure the timeout parameter in Servers -- Deployment -- Deployment Timeout, but the value I have placed there seems to be totally ignored. The value I have placed there is 1800 (from the standard 120), but the start is still timing out on the 120 (2 minutes). I have started and stopped the server on many occasions to test and also re-booted my machine to ensure there is no tomcat process hanging around anywhere etc. These actions I have done on many occasions to verify that the 1800 is being ignored.

The reason I need to wait for the tomcat start-up is that I have a contextlistener which starts after the web app deployment. This contextlistener undertakes some initialisation tasks which take about 5 to 10 minutes.

What is also strange is that even when the IDE reports Tomcat as failing to start, the contextlistener carries on it's processing (so tomcat must still be running). But -- If you look at the output window for Tomcat 7.0 then the server seems to be stopped (based from the buttons on the left). To then stop the server I need to presses the play green arrow and then the red stop square.

When starting Tomcat as a service outside the IDE all works OK with no timeouts etc.

Any thoughts please?

Thanks,

Paul.
Comment 1 Petr Hejl 2011-06-20 08:49:52 UTC
This is imo duplicate of #196991. The startup timeout is not generally configurable. Perhaps you are referring to GF which of course does have any meaning for Tomcat.

*** This bug has been marked as a duplicate of bug 196991 ***