users@glassfish.java.net

Having trouble serving WMV file from glassfish (SJAS 9.1 Update 1)

From: <glassfish_at_javadesktop.org>
Date: Wed, 06 Feb 2008 08:49:31 PST

In order to serve a .wmv video file I tried adding a new mime type to domain1/config/default-web.xml

<mime-mapping>
      <extension>wmv</extension>
      <mime-type>video/x-ms-wmv</mime-type>
  </mime-mapping>

It worked on my local XP machine, but it does not work on our Solaris server. It simply writes binary garbledy-gook to the browser.

In both cases, I restarted the domain.

Any ideas?
[Message sent by forum member 'fatherman' (fatherman)]

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