[ 
https://issues.apache.org/jira/browse/CAMEL-8962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14626742#comment-14626742
 ] 

Claus Ibsen commented on CAMEL-8962:
------------------------------------

You still need to configure the velocity endpoint with a starting resource it 
uses on startup and if the header is absent. So configure it to load some 
fallback vm file, or some dummy vm file if you always include the header

> CamelVelocityResourceUri does not work when velocity URL contains URL encoded 
> characters
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-8962
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8962
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-velocity
>    Affects Versions: 2.15.2
>            Reporter: Chris Pimlott
>            Assignee: Claus Ibsen
>
> Specifying the a velocity template via the {{CamelVelocityResourceUri}} does 
> not work correctly if the {{velocity:}} URI used contains a character that is 
> URL encoded.
> For example:
> {code}
> from("direct:input")
> .setHeader(VelocityConstants.VELOCITY_RESOURCE_URI).constant("velocity/letter.vm")
> .to("velocity:[template-in-header]")
> .to("mock:results");
> {code}
> Results in: java.io.FileNotFoundException: Cannot find resource: 
> [template-in-header] in classpath for URI: [template-in-header]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to