Hi,

I am using the camel-velocity component and want to call #parse() in my vm
template.  However, I get the following exception:
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'com/foo/bar/util/Header.vm'.  

Does anyone know how to resolve this?

Here is what I am doing:

In my RouteBuilder I have the following:

public void configure() throws Exception {
 //Note: the inputEndpoint and destinationEndpoint are set via spring
injection
 from(inputEndpoint) 
 .to("velocity:com/foo/bar/util/OrderXml.vm")
 .to(destinationEndpoint)
 .end();
}

In my vm template I have the following:
#parse("com/foo/bar/util/Header.vm")
<Order>
<order xml snipped...>
</Order>

I want to insert the Header.vm because I have some standard xml header info
which I want to be able to reuse across xml files.

I've read the
http://velocity.apache.org/engine/devel/developer-guide.html#configurationexamples
page and I'm wondering if I need to set the 'file.resource.loader.path'
value.  However I'm not sure how to do this through camel, or if this is
even the right approach.

Thanks,

Monica
-- 
View this message in context: 
http://www.nabble.com/camel-velocity-and--parse%28%29-question-tp26000423p26000423.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to