velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <nbu...@gmail.com>
Subject Re: Problem's trying to access VM pages in a JAR file.
Date Mon, 12 Jan 2009 14:56:38 GMT
We would need to see more of your velocity.properties (particularly
your resource.loader properties) to answer your question.

On Thu, Jan 8, 2009 at 10:08 AM,  <massaoh@gmail.com> wrote:
> Hi! I'm trying to create a modular application, and each module will be a
> JAR with VM pages within the JAR and they will be place in the classpath, I
> read that the ClasspathResourceLoader can load templates placed in the
> classpath, but I'm having some problems, the first problem is that I can't
> use velocimacro.library=pages/VM_global_library.vm in my
> velocity,properties, because the velocity can't find this resource, and if I
> put the VM-global_library in a jar no prolbem regarding find the file ocur
> but all the pages I try to access gives the following error: Unable to find
> resource '/pages/login.vm'  (for example).
> If someone knows exactly how to config the velocity.properties to access the
> VM pages in a JAR file, or have any ideia of what I'm doing wrong please
> answer me.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message