DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12605>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12605 [RFE] text/xml mime type not listed in default web.xml Summary: [RFE] text/xml mime type not listed in default web.xml Product: Tomcat 4 Version: 4.1.10 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I was having Tomcat serve up xml pages and I couldn't figure out why, in response wrapper used in my filter that the setContentType(String) that I was overriding was never getting called. Turns out that Tomcat's default servlet doesn't call setContentType(String) unless a mime-type has been defined in either Tomcat's conf/web.xml or the webapps's WEB-INF/web.xml. I didn't have it defined in my own webapp because I assumed that such a common file type would have been already listed in conf/web.xml. When I added the text/xml mime type to my own web.xml, everything worked as expected. I propose that, at the very least, the following mime types get added to Tomcat's conf/web.xml to avoid future confusion ... <mime-mapping> <extension>xml</extension> <mime-type>text/xml</mime-type> </mime-mapping> <mime-mapping> <extension>xsl</extension> <mime-type>text/xml</mime-type> </mime-mapping> Jake -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>