Hello,

I have recently installed Tomcat + mod_jk (with Apache).
I have a struts action servlet and a JSP with a form on it. When
submitting the form, every so often (randomly) I get an "Internal
server error" page and in mod_jk.log the following line appears:

[jk_ajp13_worker.c (606)]: Error sending request body

When I hit reload (repost), the after-submission page is displayed correctly.
I continue clicking on Submit and after several tries I get the same error.
It only happens if I go through mod_jk, though. Repeating the same experiment
with Tomcat as direct web server doesn't show any problems.

I tracked down the error to be caused by stopping and restarting
Tomcat while Apache is running (after I restart Apache, it disappears).
Is it really true that Apache must be restarted whenever Tomcat is?
If yes, what use is there for load balancing and replication if I have
to reinitialize the dispatcher (mod_jk) even if only one of the workers
dies??

This brings me to another issue: is it possible to reload a web application
transparently to users (so that noone gets an "Internal server error"
during servlet engine's restart)? This has been a big concern for me
with JServ, is it still the same with Tomcat?

Thanks -
JPL

Reply via email to