You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Shinta Tjio <st...@broadjump.com> on 2001/03/06 17:14:20 UTC

FW: problem w/ ajp13 - if Tomcat is shutdown

I'm having problem with mod_jk if ajp13 is used.

The problem is often reproduced when Tomcat is shut
down without Apache being shut down. When a request 
is fired through Apache as soon as Tomcat starts, 
I often get Internal Server Error. The mod_jk.log
will have the following:

> [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
> [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker,
>   Found a match ajp13
> [jk_worker.c (123)]: Into wc_get_worker_for_name ajp13
> [jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
> [jk_ajp13_worker.c (651)]: Into jk_worker_t::get_endpoint
> [jk_ajp13_worker.c (536)]: Into jk_endpoint_t::service
> [jk_ajp13.c (346)]: Into ajp13_marshal_into_msgb
> [jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done
> [jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error - 
>    jk_tcp_socket_recvfull failed
> [jk_ajp13_worker.c (619)]: Error reading request
> [jk_ajp13_worker.c (489)]: Into jk_endpoint_t::done

If I hit reload multiple times, eventually Tomcat will
serve the servlet fine. 

Did anyone see this problem before? Is there anyway
around this?

shinta

Re: FW: problem w/ ajp13 - if Tomcat is shutdown

Posted by Dan Milstein <da...@shore.net>.
What version of TC are you using?  What version of Apache?

I would look into the mod_jk docs -- I think this is the spec'd behavior
(which, admittedly, is not great, but that makes it more of a feature
request than a bug ;-).  With ajp13, Apache opens up a persistent TCP/IP
connection TC -- if TC restarts, I think that connection may just hang up
and then timeout (since Apache doesn't know that TC has restarted).

If anyone wants to work on this, you would have the undying thanks of the
rest of the TC community -- having to restart Apache all the time bugs a
*lot* of people.

-Dan

> Shinta Tjio wrote:
> 
> I'm having problem with mod_jk if ajp13 is used.
> 
> The problem is often reproduced when Tomcat is shut
> down without Apache being shut down. When a request
> is fired through Apache as soon as Tomcat starts,
> I often get Internal Server Error. The mod_jk.log
> will have the following:
> 
> > [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
> 
> > [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker,
> >   Found a match ajp13
> > [jk_worker.c (123)]: Into wc_get_worker_for_name ajp13
> > [jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
> > [jk_ajp13_worker.c (651)]: Into jk_worker_t::get_endpoint
> > [jk_ajp13_worker.c (536)]: Into jk_endpoint_t::service
> > [jk_ajp13.c (346)]: Into ajp13_marshal_into_msgb
> > [jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done
> > [jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error -
> >    jk_tcp_socket_recvfull failed
> > [jk_ajp13_worker.c (619)]: Error reading request
> > [jk_ajp13_worker.c (489)]: Into jk_endpoint_t::done
> 
> If I hit reload multiple times, eventually Tomcat will
> serve the servlet fine.
> 
> Did anyone see this problem before? Is there anyway
> around this?
> 
> shinta

-- 

Dan Milstein // danmil@shore.net