You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by sipe16 <si...@hotmail.com> on 2011/08/11 16:16:50 UTC

camel-freemarker FileNotFoundException

I'm trying to use the camel-freemarker component in Windows 7 x64 with Camel
2.8 running in Karaf 2.2.2.

I've used camel-velocity with success using the following URI:
velocity:file:J:\Apache\velocity_templates\failed_notification_email.vm?contentCache=false

So, I tried doing the same with a freemarker template:
freemarker:file:J:\Apache\freemarker_templates\failed_notification_email.ftl?contentCache=false

However, freemarker always throws a FileNotFoundException saying "Template
file: J:\blah..blah...ftl not found".  I've tried simplifying the file path
e.g. J:\failednotificationemail.ftl as well as trying freemarker://file:J:\,
freemarker://file://J:\, freemarker:file://J:\ etc. and other drives, giving
Everyone full permissions, etc.

Is anybody else able to reproduce this?  I would find it hard to believe it
was an issue with the uri since it worked with velocity...

// cyle

--
View this message in context: http://camel.465427.n5.nabble.com/camel-freemarker-FileNotFoundException-tp4689657p4689657.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-freemarker FileNotFoundException

Posted by sipe16 <si...@hotmail.com>.
Oh, and I did try clicking the uri within my IDE and it opened up the
template file no problem, so I know that the path is correct.

--
View this message in context: http://camel.465427.n5.nabble.com/camel-freemarker-FileNotFoundException-tp4689657p4689664.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-freemarker FileNotFoundException

Posted by Claus Ibsen <cl...@gmail.com>.
Camel 2.9 has been improved in terms of resource endpoints such as
freemarker, velocity to not use spring to load the resources. This
didn't work to well with osgi blueprint etc.



On Thu, Aug 11, 2011 at 4:16 PM, sipe16 <si...@hotmail.com> wrote:
> I'm trying to use the camel-freemarker component in Windows 7 x64 with Camel
> 2.8 running in Karaf 2.2.2.
>
> I've used camel-velocity with success using the following URI:
> velocity:file:J:\Apache\velocity_templates\failed_notification_email.vm?contentCache=false
>
> So, I tried doing the same with a freemarker template:
> freemarker:file:J:\Apache\freemarker_templates\failed_notification_email.ftl?contentCache=false
>
> However, freemarker always throws a FileNotFoundException saying "Template
> file: J:\blah..blah...ftl not found".  I've tried simplifying the file path
> e.g. J:\failednotificationemail.ftl as well as trying freemarker://file:J:\,
> freemarker://file://J:\, freemarker:file://J:\ etc. and other drives, giving
> Everyone full permissions, etc.
>
> Is anybody else able to reproduce this?  I would find it hard to believe it
> was an issue with the uri since it worked with velocity...
>
> // cyle
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/camel-freemarker-FileNotFoundException-tp4689657p4689657.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/