users@glassfish.java.net

MIME Type Mapping Issue

From: <glassfish_at_javadesktop.org>
Date: Wed, 02 Dec 2009 13:47:00 PST

What is the procedure for adding new MIME types to Glassfish for Office 2007 documents so that documents added in an application like XWiki will be delivered to the browser with the correct content type header.
I have added the mappings to domain "default-web.xml" and the application specific "web.xml" but the documents are still being identified as octet-stream:
HTTP/1.1 200OK
Server: Sun Java System Application Server 9.1_01
Set-Cookie: JSESSIONID=1556df25ad03500b4592d778a5e1; Path=/xwiki
Content-disposition: inline; filename="simple.xlsx"
Last-Modified: Wed, 02 Dec 2009 17:37:17 GMT
Set-Cookie: visitid=NMUOTURHA9P7GS5BM35MKJLN5WQSPYDL; Path=/
Content-Type: applicatvisitid=NMUOTURHA9P7GS5BM35MKJLN5WQSPYDL; Path=/
Content-Type: application/octet-stream;charset=ISO-8859-1
Content-Language: en
[Message sent by forum member 'edherrin' ]

http://forums.java.net/jive/thread.jspa?messageID=374384