You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Guenther Starnberger <gs...@atnet.at> on 2002/07/17 21:27:42 UTC
tomcat text/plain error msgs
[i already posted this message to comp.lang.java.programmer about 1
month ago, but didn't receive a reply. maybe somebody on this list
does know how to solve the problem.]
hello,
i just played around with tomcat, but there seems to be a problem when
displaying error/msgs. they should be encoded as content-type
text/html, but tomcat serves them encoded as content type text/plain.
for example i have the path (on an tomcat 4.0.3 installation connected
to apache with mod_webapp):
http://www.somedomain.org/webapps/jsp/snp/snoop.jsp
when i call:
http://www.somedomain.org/webapps/jsp/snp/snoop.nothere
ich get an 404 error msg from tomcat with content type text/plain:
HTTP/1.1 404 Not Found
Date: Sun, 09 Jun 2002 22:13:18 GMT
Server: Apache/1.3.9 (Unix) Debian/GNU mod_ssl/2.4.10 OpenSSL/0.9.4
Connection: close
Content-Type: text/plain; charset=iso-8859-1
<html><head><title>Apache Tomcat/4.0.3 - Error report</title> [...]
when i do the same with the standalone version of tomcat i get the
following headers:
HTTP/1.1 404 /jsp/snp/snoop.nothere
Date: Sun, 09 Jun 2002 22:15:15 GMT
Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)
Connection: close
==> no content type...
i suspect that in the 1. case tomcat doesn't send a content-type, and
apache sets it to some text/plain default.
any hints how i can tell tomcat to encode the error msgs as text/html?
cu
/gst
--
/// guenther starnberger || at-net || JID: \\\
\\\ GST-RIPE || http://www.vbs.at/ || gst@jabber.at ///
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: tomcat text/plain error msgs
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On 17 Jul 2002, Guenther Starnberger wrote:
> Date: 17 Jul 2002 21:27:42 +0200
> From: Guenther Starnberger <gs...@atnet.at>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> To: tomcat-user@jakarta.apache.org
> Subject: tomcat text/plain error msgs
>
> [i already posted this message to comp.lang.java.programmer about 1
> month ago, but didn't receive a reply. maybe somebody on this list
> does know how to solve the problem.]
>
> hello,
>
> i just played around with tomcat, but there seems to be a problem when
> displaying error/msgs. they should be encoded as content-type
> text/html, but tomcat serves them encoded as content type text/plain.
>
Sounds like a bug report would be a good idea:
http://nagoya.apache.org/bugzilla/
In the interim, you can define your own error pages and the content type
set by those pages should be used.
Craig
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>