Hi,

Matthew Thomas Broadhead wrote:
Recently upgraded Tomcat from version 4.1.31 to 6.0.14.

In my web.xml
- index.htm is set as the welcome file
- index.htm is mapped to a servlet which produces html
and there is a blank index.htm in the root of the webapp.

This worked fine for 4.1.31 on port 8080 and through AJP1.3 connector.
On 6.0.14 it works fine through port 8080, but through AJP1.3 the content type seems to change to text/plain instead of text/html, i.e. browsers display raw code instead of formatting html. It renders ok for www.example.com/index.htm but www.example.com/ displays the raw source.

Which version of JK are you using? Assuming you are using 1.2.25, could you please provide

- information about your platform, versions and configuration
- the JK log using log level debug, and containing the full startup of apache and one request/response, where the problem appears?

The problem sounds like something we had with servlets doing a flush before the headers were sent back. This has been fixed in JK waiting to get released with 1.2.26 and in Tomcat directly after 6.0.14 (also not released yet). The fix on one of the two sides should suffice.

You casn grab a dev snapshot of JK 1.2.26 sources from

http://people.apache.org/~rjung/mod_jk-dev/

Regards,

Rainer

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to