This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Wierd issue with tomcat - ServiceClient invocation timing out after 15 seconds Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Wierd issue with tomcat - ServiceClient invocation timing out after 15 seconds" Watch "Wierd issue with tomcat - ServiceClient invocation timing out after 15 seconds" New topic
Author

Wierd issue with tomcat - ServiceClient invocation timing out after 15 seconds

craig mclellen
Greenhorn

Joined: Feb 19, 2007
Posts: 9
Hi,

I'm trying to call a web method that is expected to take 1min 10sec to complete, but ServiceClient invoke method is timing out after 15 seconds when running in a TomCat 5.5 container, but not when running as a junit test. When running as a junit test, the ServiceClient waits long enough (1min 10 sec) for the web method to return a result. I thought it may have been an issue with TomCat 5.5, so I then installed v6, but the app still timedout after 15 seconds under TomCat v6. The app is a web service using Axis2 v1.3. I'm using jdk 5.

These are the options I've set on my ServiceClient instance:
options.setTimeOutInMilliSeconds(120000);
options.setProperty(HTTPConstants.SO_TIMEOUT, 120000);
options.setProperty(HTTPConstants.CONNECTION_TIMEOUT, 120000);
options.setCallTransportClieanup(true);

These are the settings in my axis2.xml file:
ConfigContextTimeoutInterval=35000
requestTimeout=45000 (within the transportReceiver element)

These are the settings in my server.xml file under ${TOMCAT_HOME}/conf
connectionTimeout=55000 (within the Connector element)

I've run out of ideas as to what I could try next to get this web method call from timing out before 2 minutes.
I would really appreciate any help in getting this sorted.
Thanks,
Cheers,
Craig
 
jQuery in Action, 2nd edition
 
subject: Wierd issue with tomcat - ServiceClient invocation timing out after 15 seconds
 
Similar Threads
Client for MTOM content transfer in Axis2
performance simulation failed in tomcat 5.5
j2ee application instance in tomcat container
Axis2 http Configuration problem
BPEL eclipse designer and Apache ODE