Hi,

after moving my templates to a sub-path "content/velocity", where "content"
is the same level as "WEB-INF", and adding the following entry to
velocity.property:

file.resource.loader.path = /content/velocity

(velocity.property actually is found and parsed - I verified this by
debugging. It also took a while to figure out the mistake of setting the
init-param for the maverick dispatcher-servlet context and not the velocity
context, but, oh well :-/)

Ok, were have I been.
Yes, now I have trouble with this:

org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource '/trimInside.vm'

(the path actually is "content/velocity/trimInside.vm")

The server.xml (I am using tomcat 4.1.18) contains:

<Context path="/mywebapp"
docBase="C:\dev\workspace\mywebapp"
workDir="C:\dev\workspace\mywebapp\work\org\apache\jsp" />

Now I wonder what combination of settings of docBase,
file.resource.loader.path or other path-configs I did'nt find yet will do
the trick.

Actually, as indicated earlier, I am also using maverick (that's why the
crosspost), and I started from the velocity-flavor friendbook example.
"trimInside.vm" is chained in as transformation, AFAIU, so that's were there
might be a setting I missed(?) but nevertheless, my own macro.vm, which is
properly registered in velocity.property, does'nt seem to be reached
either).

Any help would be much appreciated.

Regards,
Thilo.





-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
[INVALID FOOTER]

Reply via email to