I'm trying to get ClasspathResourceLoader working. I had this working as documented
with a previous release of velocity-1.1-dev, but I can't get it to work right with
velocity-1.1-rc1 (or velocity-1.0.1).
I'm running tomcat 3.2.1 with velocity-1.1-rc1.
The webapp is configured as follows:
1. webapp/velocity.properties file is
resource.loader = class
class.resource.loader.description = Velocity Classpath Resource Loader
class.resource.loader.class =
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2. webapp/WEB-INF/lib/sample.vm
webapp/WEB-INF/lib/velocity-1.1-rc1.jar
3. webapp/WEB-INF/web.xml - has appropriate info for SampleServlet
The only way I can get velocity to find and serve sample.vm is by starting tomcat from
webapp/WEB-INF/lib directory, and not jarring sample.vm...any other combinations
refuse to work with the same "handleRequest(Context) returned null - no template
selected!" exception.
Any ideas?
John Harris