Ok, I have found the problem.   A firewall between my tomcat server and a
MySQL server was closing the database connection.  I was checking if this
was closed in the web service, using the Connection.isClosed() method, but
that does not work as expected and was returning true even though the
connection was closed.  The execution continued and an exception was thrown,
where in the catch{} section I was then calling System.exit(), which I
thought would shut down the web service only, but it is actually shutting
down the whole JVM, causing tomcat to stop too.

Thanks for you help,
Dave

-----Original Message-----
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Monday, 11 December 2006 2:28 PM
To: Tomcat Users List
Subject: RE: tomcat pauses then crashes after a period of time

> From: David Wood [mailto:[EMAIL PROTECTED] 
> Subject: tomcat pauses then crashes after a period of time
> 
> I have set up tomcat to run as a daemon using jsvc, which is 
> working well, except when tomcat is idle for a period of time
> (usually overnight), and I execute a web service client, tomcat
> receives the request then simply stops.

No answers, but could you run Tomcat from a shell for a while and see if
anything informative comes out on the console?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to