You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by ma...@gmail.com on 2009/01/08 19:08:34 UTC
Problem's trying to access VM pages in a JAR file.
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.
Re: Problem's trying to access VM pages in a JAR file.
Posted by Nathan Bubna <nb...@gmail.com>.
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, <ma...@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