title: Grails 2 not serving static resources
body: <p>I am using Grails 2.0.4 and would like to serve some static resources, such as images or videos. </p>
  
  <p>I have the png version of the grails logo in images/grails_logo.png (as usual). If I type in the url 'http://localhost:8080/TmmWeb/static/images/grails_logo.png', it will show me this logo. </p>
  
  <p>But if I put in 'http://localhost:8080/TmmWeb/static/images/grails_logo.jpg' (there is also a jpeg version of the old logo present), the application shows an 404 report that "The requested resource () is not available.".</p>
  
  <p>If I create a subdirectory 'videos', and change the configuration line for the adhoc patterns to be <code>grails.resources.adhoc.patterns = ['/images/*', '/css/*', '/js/*', '/plugins/*','/videos/*']</code>, then the url 'http://localhost:8080/TmmWeb/static/images/grails_logo.png' also fails with that complaint. </p>
  
  <p>If I set the adhoc patterns are set to null with <code>grails.resources.adhoc.patterns = []</code> then urls like 'http://localhost:8080/TmmWeb/videos/grails_logo.png' work and deliver the content.</p>
  
  <p>So why is it that with the adhoc filters in place only .png files can be served from images directory, not from the videos directory and that .jpg files can't be served?</p>
  
  <p>Since these urls fail, embedding the images or a video in a page is also failing when using those urls.</p>
  
  <p>I should also note that ultimately I want to be able to access an entire directory of videos without entering each of them into a resource declaration.</p>