Hi Try with latest release as the older dozer release does not work well in OSGi. And we also fixed stuff in camel-dozer. So try with Camel 2.14.0.
On Mon, Oct 20, 2014 at 5:56 PM, Thomas Weinschenk <[email protected]> wrote: > Hi all, > > I tried to use the Dozer Type Conversion as explained in the documentation > in Karaf but without success. > > I defined a org.apache.camel.converter.dozer.DozerTypeConverterLoader... > <bean id="dozerConverterLoader" > class="org.apache.camel.converter.dozer.DozerTypeConverterLoader" /> > > > and a org.apache.camel.converter.dozer.DozerBeanMapperConfiguration > <bean id="mapper" > class="org.apache.camel.converter.dozer.DozerBeanMapperConfiguration"> > <property name="mappingFiles"> > <list> > <value>dozer-mapping.xml</value> > </list> > </property> > </bean> > in my blueprint. In the route I try to convert the Object with convertBodyTo > but the result is null. > > It looks to my like the Converter is never really loaded or added to the > registry. > > Is there anything special I have to do in my route? Is it right to use the > default constructor of the DozerTypeConverterLoader and not one of the > constructors that accept a context and a configuration? > > Thanks a lot, > Thomas > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Dozer-Type-Conversion-2-12-2-not-working-in-Karaf-tp5757812.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/
