cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carles Canellas <ccanell...@yahoo.es>
Subject Macros in velocity generator
Date Wed, 24 Jul 2002 10:21:42 GMT
Hello.
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:generate>
<map:serialize type="xml"/>
</map:match>
</map:pipeline>

The message in the sitemap.log is:
INFO    (2002-07-24) 10:57.05:695   [sitemap]
(/cocoon/impresion/imprime)
Thread-7/VelocityGenerator: Velocimacro :
initialization starting.
INFO    (2002-07-24) 10:57.05:695   [sitemap]
(/cocoon/impresion/imprime)
Thread-7/VelocityGenerator: Velocimacro : adding VMs
from VM library template : VM_global_library.vm
ERROR   (2002-07-24) 10:57.05:695   [sitemap]
(/cocoon/impresion/imprime)
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]
(/cocoon/impresion/imprime)
Thread-7/VelocityGenerator: Velocimacro : error using 
VM library template VM_global_library.vm :
org.apache.velocity.exception.ResourceNotFoundException:
Unable to find resource 'VM_global_library.vm'
INFO    (2002-07-24) 10:57.05:695   [sitemap]
(/cocoon/impresion/imprime)
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
issue.

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.
Carles.


_______________________________________________________________
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://es.messenger.yahoo.com

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message