title: Velocity Template Not Found With Classpath
body: <p>I cannot seem to get access to my velocity templates when I switch to the "classpath" resource loader.  I've tried putting a templates directory on /WEB-INF/classes/templates,  /WEB-INF/templates, creating a templates.jar in /WEB-INF/lib.  None of them work.  Any ideas?  Permissions on those files are all correct.</p>
  
  <pre><code>Properties p = new Properties();
  p.setProperty("runtime.log.logsystem.class", "org.apache.velocity.tools.generic.log.CommonsLogLogSystem");
  
  /*
  // Works fine:
  p.setProperty(RuntimeConstants.RESOURCE_LOADER, "file");
  p.setProperty("file.resource.loader.path", "/path/to/templates");
  */
  
  // Cannot find template with this:
  p.setProperty(RuntimeConstants.RESOURCE_LOADER, "classpath");
  p.setProperty("class.resource.loader.class", ClasspathResourceLoader.class.getName());
  p.setProperty("resourceLoaderPath", "/WEB-INF/classes/templates");
  
  org.apache.velocity.app.Velocity.init(p);
  
  template = org.apache.velocity.app.Velocity.getTemplate("confirmation_html.vm");
  </code></pre>