Salut,
glassfish_at_javadesktop.org wrote:
> 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
Which version of GlassFish are you using? If v3, make sure you deploy a
war file before testing as I've just discovered an issue where value
defined in defaul-web.xml are not passed to Grizzly.
A+
-- Jeanfrancois
> [Message sent by forum member 'edherrin' ]
>
> http://forums.java.net/jive/thread.jspa?messageID=374384
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>