cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carles Canellas <>
Subject Macros in velocity generator
Date Wed, 24 Jul 2002 10:21:42 GMT
I'm using a velocity generator in a internal pipeline
on my sitemap in order to get a xsp file.

My problem is that i want to use velocimacros to
simplify the source vm file, but I don't know where
cocoon is trying to find the VM_global_library.vm
where I have defined the macros.

the internal pipeline is:

<map:pipeline internal-only="yes" type="caching">
<map:match pattern="velocity/*/*/*.xsp">
<map:generate src="plantillas/{1}.vm" type="velocity">
<map:parameter name="idioma" value="{2}"/>
<map:parameter name="formato" value="{3}"/>
<map:serialize type="xml"/>

The message in the sitemap.log is:
INFO    (2002-07-24) 10:57.05:695   [sitemap]
Thread-7/VelocityGenerator: Velocimacro :
initialization starting.
INFO    (2002-07-24) 10:57.05:695   [sitemap]
Thread-7/VelocityGenerator: Velocimacro : adding VMs
from VM library template : VM_global_library.vm
ERROR   (2002-07-24) 10:57.05:695   [sitemap]
Thread-7/VelocityGenerator: ResourceManager : unable
to find resource 'VM_global_library.vm' in any
resource loader.
INFO    (2002-07-24) 10:57.05:695   [sitemap]
Thread-7/VelocityGenerator: Velocimacro : error using 
VM library template VM_global_library.vm :
Unable to find resource 'VM_global_library.vm'
INFO    (2002-07-24) 10:57.05:695   [sitemap]
Thread-7/VelocityGenerator: Velocimacro :  VM library
template macro registration complete.

I have searched in the documentation and in the
cocoon.xconf and I have found nothing about that

My java is not so good to find it in the source code.

In wich path is cocoon trying to find these files?
Can I change this path? How?

Thanks in advance.

Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message