You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Robert Crews <rc...@epicentric.com> on 2001/02/09 20:46:40 UTC

Problem moving from 3.2 to 3.2.1

Hi all. I'm hoping someone can help me with a problem that
I'm having as I move from Tomcat 3.2 to Tomcat 3.2.1.

I'm using Tomcat as a Type 1 servlet container: both as an
application server (servlet engine) and as a Web server.

My context is called /portal and is accessed by a file called
index.jsp in my Web root. I installed it under 3.2 without
problems and am very happy with its performance. All I had to
do was unzip Tomcat, edited tomcat.bat to add files to the
CLASSPATH, and edit server.xml to include

   <Context path="/portal" docBase="D:\ebns\portal"
     crossContext="true" debug="0" reloadable="false"
     trusted="false"/>

This works great with Tomcat 3.2; however, under 3.2.1, some
parts of my HTML pages -- the header and navbar -- are no
longer part of the HTML sent to the browser. The following
error is written to the DOS window associated with Tomcat:

  Servlet API error: sendError with commited buffer
  Servlet API error: sendError with commited buffer

Interestingly, my 3.2 servlet.log file contains:

   2001-02-09 09:54:22 - path="/examples" :jsp: init
   2001-02-09 09:54:22 - path="/admin" :jsp: init
   2001-02-09 09:54:22 - path="/portal" :jsp: init
   2001-02-09 09:54:22 - path="" :jsp: init
   2001-02-09 09:54:23 - path="/test" :jsp: init
   2001-02-09 09:54:40 - path="/portal" :jsp: init
   2001-02-09 09:54:59 - path="/portal" :jsp: init
   2001-02-09 09:54:59 - path="/portal" :jsp: init

Note how the /portal context is initialized four times. Under
3.2.1, the equivalent log looks like this:

   2001-02-09 09:51:11 - path="/examples" :jsp: init
   2001-02-09 09:51:11 - path="/admin" :jsp: init
   2001-02-09 09:51:11 - path="/portal" :jsp: init
   2001-02-09 09:51:12 - path="" :jsp: init
   2001-02-09 09:51:12 - path="/test" :jsp: init
   2001-02-09 09:51:58 - path="/portal" :jsp: init

Note how the last two initializations are not there. However,
there *are* those corresponding "Servlet API errors" (described
above) sent to stderr along with rendering errors.

This seems to be an issue with 3.2.1 since neither my servlet
nor my configuration files have changed.

Can someone explain the error, and describe how I can get my
servlet to run with 3.2.1?

Thanks,

Robert