marcardar / transcriptstudio-isha

Automatically exported from code.google.com/p/transcriptstudio4isha
0 stars 0 forks source link

Configure Jetty to serve static content (eg SWF, MP4) #70

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
At the moment, our configuration of Jetty does not allow SWF & MP4 files to
be served directly.

We need some way to serve media files.

Original issue reported on code.google.com by mjc1...@gmail.com on 19 Feb 2009 at 9:38

GoogleCodeExporter commented 9 years ago
When trying to access SWF files, I get a cocoon (ResourceNotFound) exception.

I was able to edit the webapp/sitemap.xmap file to recognise .swf and .mp4 
files.

However, for the 100MB mp4 file, I got an out of memory message.

Anyway, it makes sense not to use cocoon at all for this (because we only want 
to
serve static content).

This can be done by editing the web.xml file as follows:

<servlet>
   <servlet-name>static</servlet-name>
   <servlet-class>org.mortbay.jetty.servlet.Default</servlet-class>
</servlet>

<servlet-mapping>
   <servlet-name>static</servlet-name>
   <url-pattern>*.swf</url-pattern>
</servlet-mapping>

...plus further entries for .mp4, .mp3, .aac etc

Original comment by mjc1...@gmail.com on 19 Feb 2009 at 9:43

GoogleCodeExporter commented 9 years ago
Fixed in r181.

Original comment by mjc1...@gmail.com on 19 Feb 2009 at 10:05