Olá pessoal… to com problemas com o velocity, ele não esta achando os templates… ja tentei um monte de coisas para resolver e nada
eis os dados:
Estrutura dos arquivos:
\webapps\velocity\WEB-INF\velocity.properties
\webapps\velocity\WEB-INF\classes\servlets\Fonte.class
\webapps\velocity\WEB-INF\web.xml
\webapps\velocity\WEB-INF\templates\fontes.vm
web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<servlet>
<servlet-name>Fonte</servlet-name>
<servlet-class>servlets.Fonte</servlet-class>
<init-param>
<param-name>org.apache.velocity.properties</param-name>
<param-value>/WEB-INF/velocity.properties</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>Fonte</servlet-name>
<url-pattern>/fonte</url-pattern>
</servlet-mapping>
</web-app>
velocity.properties
file.resource.loader.path = WEB-INF\templates
file.resource.loader.cache = false
runtime.log = velocity.log
exceção
org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'fontes.vm'
o interessante que se eu dou VelocityEngine.getProperty(“file.resource.loader.path”), ele me retorna “.” (ponto)
alguem sabe o que eu estou fazendo de errado??