You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Paul Downs <pa...@positive-internet.com> on 2002/12/05 13:25:29 UTC

Tomcat 4.1.12 fails to serve JSP for more than 7 contexts.

Hi,
  I have had a problem over the last week or so with a binary download of
Tomcat 4.1.12.  If the system was run under jdk1.4.1_01 no jsp would be
served at all.  Here is an extract from the log:

2002-12-05 12:09:54 StandardContext[]:  Mapped to servlet 'jsp' with servlet
path '/test.jsp' and path info 'null' and update=true
2002-12-05 12:09:54 Ajp13Processor[8010][4] done invoking, finishing
request/response....
2002-12-05 12:09:54 Ajp13Processor[8010][4] [Ajp13] [RequestHandler]
sendHeaders()
2002-12-05 12:09:54 Ajp13Processor[8010][4] [Ajp13] [RequestHandler] status
is:  200(OK)
2002-12-05 12:09:54 Ajp13Processor[8010][4] [Ajp13] send()
2002-12-05 12:09:54 Ajp13Processor[8010][4] [Ajp13] [RequestHandler]
finish()
2002-12-05 12:09:54 Ajp13Processor[8010][4] [Ajp13] send()
2002-12-05 12:09:54 Ajp13Processor[8010][4] finished handling request.
2002-12-05 12:09:54 Ajp13Processor[8010][4] recyling objects ...
2002-12-05 12:09:54 Ajp13Processor[8010][4] [Ajp13] recycle()

 So I dropped the install back to a 1.3 series SDK (1.3.1_01).  Everything
was fine and happy until I added more than 7 Host entries.  At this point we
get exactly the same bug and log output as before.  Remove 1 host entry, any
host entry, and it is happy again.

 As far as I can see the system is compiling the java source correctly and
internally tomcat has the data, however somewhere along the line ajp13 is
sending the header fine and then never doing the doWrite() calls to send the
bodies. Here is a health log output for a jsp:

2002-12-05 12:08:54 StandardContext[]:  Mapped to servlet 'jsp' with servlet
path '/test.jsp' and path info 'null' and update=true
2002-12-05 12:08:54 Ajp13Processor[8010][4] [Ajp13] [RequestHandler]
sendHeaders()
2002-12-05 12:08:54 Ajp13Processor[8010][4] [Ajp13] [RequestHandler] status
is:  200(OK)
2002-12-05 12:08:54 Ajp13Processor[8010][4] [Ajp13] send()
2002-12-05 12:08:54 Ajp13Processor[8010][4] [Ajp13] [RequestHandler]
doWrite(byte[], 0, 250)
2002-12-05 12:08:54 Ajp13Processor[8010][4] [Ajp13] send()
2002-12-05 12:08:54 Ajp13Processor[8010][4] done invoking, finishing
request/response....
2002-12-05 12:08:54 Ajp13Processor[8010][4] [Ajp13] [RequestHandler]
finish()
2002-12-05 12:08:54 Ajp13Processor[8010][4] [Ajp13] send()
2002-12-05 12:08:54 Ajp13Processor[8010][4] finished handling request.
2002-12-05 12:08:54 Ajp13Processor[8010][4] recyling objects ...

 Any hints gratefully appreciated, I haven't started hacking around in ajp13
yet but I will do soon.  Next thing to do is a source build of the system to
see if that suffers too! :-)

TIA,

Paul

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>