freemarker component

2013-08-26 Thread Ernest Lu
hi, I’m trying to use freemarker component with the following URI: freemarker://http://127.0.0.1:8080/test/test.txt However,freemarker throws a java.io.FileNotFoundException: http://127.0.0.1:8080/test/test_zh_CN.txt. Why is not the same as the URI in the Exception and the original URI. I

Re: freemarker component

2013-08-26 Thread Claus Ibsen
, Ernest Lu syf...@sina.com wrote: hi, I’m trying to use freemarker component with the following URI: freemarker://http://127.0.0.1:8080/test/test.txt However,freemarker throws a java.io.FileNotFoundException: http://127.0.0.1:8080/test/test_zh_CN.txt. Why is not the same as the URI

Re: freemarker component

2013-08-26 Thread Ernest Lu
hi Claus thanks for your reply I succeed in solving the problem using the way of setting the URI like this: freemarker://http://127.0.0.1:8080/test/test.txt?configuration.locale=null; -- View this message in context: http://camel.465427.n5.nabble.com/freemarker-component

Re: can't get freemarker component to work with XML content.

2011-04-21 Thread Claus Ibsen
. Maybe there is something there we can do to workaround the issue. On Wed, Apr 20, 2011 at 5:04 PM, Sorin Silaghi sorin7...@gmail.com wrote: Hi all,       I'm using camel inside servicemix to process some files and I can't get the freemarker component to work propperly with XML content

Re: can't get freemarker component to work with XML content.

2011-04-21 Thread Sorin Silaghi
camel inside servicemix to process some files and I can't get the freemarker component to work propperly with XML content. Here's what I did: I created a processor to convert the body of the exchange message from String to NodeModel. If I then use freemarker right in the processor

Re: can't get freemarker component to work with XML content.

2011-04-21 Thread Sorin Silaghi
get the freemarker component to work propperly with XML content. Here's what I did: I created a processor to convert the body of the exchange message from String to NodeModel. If I then use freemarker right in the processor to apply the template it all works fine. But if I pass

Re: can't get freemarker component to work with XML content.

2011-04-21 Thread Sorin Silaghi
Hi Claus, Seems I found the solution to this problem: it was because of the difference in freemarker version between my processor and the camel-freemarker component. That change from 2.3.15 to 2.3.16 caused it. thanks for the help, Sorin. On Thu

Re: can't get freemarker component to work with XML content.

2011-04-21 Thread Fernando Ribeiro
in freemarker version between my processor and the camel-freemarker component. That change from 2.3.15 to 2.3.16 caused it. thanks for the help, Sorin. On Thu, Apr 21, 2011 at 11:44 AM, Claus Ibsen claus.ib...@gmail.com wrote: Hi You get a NPE

Re: can't get freemarker component to work with XML content.

2011-04-21 Thread Fernando Ribeiro
Oops, sorry I hadn't read the entire thread, understood the issue already. ServiceMix 4.4 will have 2.3.16 instead. Thanks. Em 21/04/2011 14:31, Fernando Ribeiro webmas...@fernandoribeiro.eti.br escreveu: Do you mean you had to downgrade in your app? FreeMarker is going to be updated to 2.3.16

can't get freemarker component to work with XML content.

2011-04-20 Thread Sorin Silaghi
Hi all, I'm using camel inside servicemix to process some files and I can't get the freemarker component to work propperly with XML content. Here's what I did: I created a processor to convert the body of the exchange message from String to NodeModel. If I then use freemarker