You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Frankie.Shen" <sh...@hotmail.com> on 2011/10/28 07:36:32 UTC

CamelTestSupport doesn't load Custom TypeConverter

I write a custom TypeConverter , and i also add
META-INF/services/org/apache/camel/TypeConverter

it worked good in my application (I run camel in
org.apache.camel.spring.main not use maven)

but when i wanna use CamelTestSupport  to test my camle route , it can't
find my custom converter. 

have someone met this situation before?

--
View this message in context: http://camel.465427.n5.nabble.com/CamelTestSupport-doesn-t-load-Custom-TypeConverter-tp4945011p4945011.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: CamelTestSupport doesn't load Custom TypeConverter

Posted by Claus Ibsen <cl...@gmail.com>.
On Fri, Oct 28, 2011 at 11:04 AM, Frankie.Shen <sh...@hotmail.com> wrote:
> Camel 2.7
>
> what do u mean classpath contains my custom typeconverter , the
> xxxconverter.java file is in the src folder
>

Yeah but the TypeConverter file must also be in the classpath.


> --
> View this message in context: http://camel.465427.n5.nabble.com/CamelTestSupport-doesn-t-load-Custom-TypeConverter-tp4945011p4945405.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/

Re: CamelTestSupport doesn't load Custom TypeConverter

Posted by "Frankie.Shen" <sh...@hotmail.com>.
Camel 2.7 

what do u mean classpath contains my custom typeconverter , the
xxxconverter.java file is in the src folder 

--
View this message in context: http://camel.465427.n5.nabble.com/CamelTestSupport-doesn-t-load-Custom-TypeConverter-tp4945011p4945405.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: CamelTestSupport doesn't load Custom TypeConverter

Posted by Claus Ibsen <cl...@gmail.com>.
What version of Camel are you using.

And make sure the classpath contains the custom type converter, so the
file can be discovered.


On Fri, Oct 28, 2011 at 7:36 AM, Frankie.Shen <sh...@hotmail.com> wrote:
> I write a custom TypeConverter , and i also add
> META-INF/services/org/apache/camel/TypeConverter
>
> it worked good in my application (I run camel in
> org.apache.camel.spring.main not use maven)
>
> but when i wanna use CamelTestSupport  to test my camle route , it can't
> find my custom converter.
>
> have someone met this situation before?
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/CamelTestSupport-doesn-t-load-Custom-TypeConverter-tp4945011p4945011.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/