Apache/Tomcat HTML Rendering Issues w/ Mozilla


General J2EE: Apache/Tomcat HTML Rendering Issues w/ Mozilla

  1. Hello,

    I have a server running Apache 1.3 and Tomcat 4. we are using the weapp connector enabled so that requests can all go through Apache.

    Everything works great except for 1 major glitch. When using Mozilla, Firefox or netscape to access the site, HTML code is displayed instead of the rendered page. Explorer works just fine.

    If you try and connect to the site via the coyote HTTP connector on port 9006 using the same browser, the page is displayed correctly.

    Here is a link to the probelm site:

    I have tried building a new server that uses mod_jk with ajp13 instead of webapp and the same thing occurrs. I think the problem has something to do with the the tomcat settings, however I have no clue where to start.

    Any help is appreciated.

  2. It looks like your content type is set to text/plain; it should be text/html. IE may be more forgiving about this than Mozilla or Firefox.

    I tested it on FireFox and got only the html. Using the "Developer" extension for FireFox I was able to read your response headers and saw that it was text.

    Change that and see if it makes a difference.

    Good luck.