ClasspathResourceLoader can't find template resources.

2015-12-20 Thread David Hoffer
I'm getting ResourceNotFoundException errors using Velocity (1.7) in a web application. The following is the error I get but its somewhat random. org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'Body-1_v2.vm' Or

Re: ClasspathResourceLoader can't find template resources.

2015-12-20 Thread David Hoffer
Yeah its definitely an issue where Velocity can't reliably load resources using the web app's class path. I found a workaround by by using a FileResourceLoader an setting its path to the calculated path of the webapp's WEB-INF/classes folder and that does appear to work reliably. Sure would be