You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by whitesox12 <bu...@yahoo.com> on 2008/04/09 05:10:40 UTC
Web Service deployed on Tomcat stops responding after sometime
Hi,
I haven't used Tomcat before and is the first time I am using it. I have Web
Service that is deployed on Tomcat 5 installed on my local system. Web
Service I am using Spring, Hibernate. The issue I am facing is
after deploying a service all works fine. As soon as I leave the service
idle means I don't make any calls to the Web Service for couple of hours my
Web Service stops working. If I try to invoke a Web Service I get an error
message and looking at the logs I don't see any call to the Web Service so I
end up undeploying and redeploying the Web Service and it starts working and
if I don't invoke the Service for couple of hours it stops working and I
then I have to undeploy and redeploy the Service.
Any idea waht might be the problem where to look. Why the Service keeps
working as long as I keep calling but stops working if I call after couple
of hours. Is there any settings I need to make on Tomcat as I am new to
Tomcat so have no idea where to look.
I did check the log files but don't see any errors either.
Any help is appreciated.
Thanks
--
View this message in context: http://www.nabble.com/Web-Service-deployed-on-Tomcat-stops-responding-after-sometime-tp16578515p16578515.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Web Service deployed on Tomcat stops responding after sometime
Posted by whitesox12 <bu...@yahoo.com>.
I am using Oracle 10g Database.
Caldarale, Charles R wrote:
>
>> From: whitesox12 [mailto:burn_hall@yahoo.com]
>> Subject: Web Service deployed on Tomcat stops responding
>> after sometime
>>
>> The issue I am facing is after deploying a service all works
>> fine. As soon as I leave the service idle means I don't make
>> any calls to the Web Service for couple of hours my
>> Web Service stops working.
>
> It's possible that your DB connections are timing out and are not
> configured properly for automatic reconnect. The exact parameters are
> dependent on which DB you're using (you didn't say), but you'll need to
> set the validationQuery and testOnBorrow attributes:
> http://commons.apache.org/dbcp/configuration.html
>
> Search the archives for more info:
> http://marc.info/?l=tomcat-user
>
> - 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Web-Service-deployed-on-Tomcat-stops-responding-after-sometime-tp16578515p16586186.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Web Service deployed on Tomcat stops responding after sometime
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: whitesox12 [mailto:burn_hall@yahoo.com]
> Subject: Web Service deployed on Tomcat stops responding
> after sometime
>
> The issue I am facing is after deploying a service all works
> fine. As soon as I leave the service idle means I don't make
> any calls to the Web Service for couple of hours my
> Web Service stops working.
It's possible that your DB connections are timing out and are not
configured properly for automatic reconnect. The exact parameters are
dependent on which DB you're using (you didn't say), but you'll need to
set the validationQuery and testOnBorrow attributes:
http://commons.apache.org/dbcp/configuration.html
Search the archives for more info:
http://marc.info/?l=tomcat-user
- 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org