title: How to turn off VelocityViewResolver errors in Spring?
body: <p>I'm using Velocity and Spring.  Within Spring, I'm using the <code>VelocityViewResolver</code> paired with the <code>ContentNegotiatingViewResolver</code>.  For the most part, this works great.  The only problem is that the <code>ContentNegotiatingViewResolver</code> queries the <code>VelocityViewResolver</code> with many different content sets (as it should).  </p>
  
  <p>When the Velocity engine doesn't find the particular template, an error is produced similar to the following:</p>
  
  <blockquote>
    <p>2011-02-04 13:37:15,074 ERROR [http-8080-2] VelocityEngine: ResourceManager : unable to find resource 'foo.json.vm' in any resource loader.</p>
  </blockquote>
  
  <p>This is not ideal.  Ideally, if a template isn't found, a warning or something similar would be produced.  If a template doesn't exist for a particular content type, I don't really care... as that means that content type isn't supported through that view resolver.</p>
  
  <p>Any idea on how I could suppress this error though the <code>VelocityViewResolver</code>, <code>VelocityView</code>, or <code>ContentNegotiatingViewResolver</code>?</p>