title: Velocity can't find resource with webApp
body: <p>I'm trying to create a webApp using GlashFish server and Velocity.</p>
  
  <p>But i get the following error:</p>
  
  <pre><code>    SEVERE: ResourceManager : unable to find resource 'temp.vm' in any resource loader.
  SEVERE: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'temp.vm'
  </code></pre>
  
  <p>velocity.proprieties:</p>
  
  <pre><code>resource.loader=webapp
  webapp.resource.loader.class=org.apache.velocity.tools.view.WebappResourceLoader
  webapp.resource.loader.path=/WEB-INF/templates/
  </code></pre>
  
  <p>Servlet:</p>
  
  <pre><code> ve.setApplicationAttribute("javax.servlet.ServletContext", context);
              template = ve.getTemplate("temp.vm");
  </code></pre>
  
  <p>I am using NetBeans IDE and my temp.vm file is in /WEB-INF/templates/. The must be somethings I'm missing but I just can't get what it is. </p>
  
  <p>Thank you for your help!</p>