moving templates in subdirectory

"Thilo Schwidurski" <[email protected]>
Newsgroups gmane.comp.jakarta.velocity.user,gmane.comp.web.maverick.general
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.