hi folks

I'm trying to get my development environment setup on freebsd and 
templates don't load from where I want. In particular here is what
I'm doing:

1. servlet extends VelocityServlet. and calls Velocity.init(). I dont
override loadConfiguration()

2. In my webapp, web.xml I define the specific properties file:
    <param-name>org.apache.velocity.properties</param-name>
    <param-value>/WEB-INF/velocity.properties</param-value>

    I'm pretty sure the right velocity.properties file is being loaded, 
    because when I change the name it spits an error in the log.

4. In the properties file I define:

    file.resource.loader.path = /WEB-INF/templates/

5. In my servlet I do:
    getTemplate("Test.vm");

    /www/element/WEB-INF/templates/Test.vm - this file exists

6. catalina.log - org.apache.velocity.exception.ResourceNotFoundException: 
Unable to find resource 'Test.vm'


7. If I copy my template to /www/element/Test.vm velocity finds the template, 
but I'd prefer not to keep my templates there. So any suggestion to make it 
load from the location I want but obvoiusly am setup wrong?

Thanks,
Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to