Hi,

net.sf.dozer/dozer-osgi/5.3.2 is already a OSGi bundle, so it should play the same role as org.apache.servicemix.bundles.dozer

Please ensure your customer bundle Import-Package org.dozer.util

Freeman
On 2012-6-28, at 下午11:25, PAC Kieffer Guillaume wrote:

Hi All,

I am currently trying to use camel-dozer (2.9.2) component on ServiceMix 4.4.1:

When I try to start the bundle, I get the following exception:
org.osgi.service.blueprint.container.ComponentDefinitionException: Error when instanciating bean mapper of class class org.dozer.DozerBeanMapper at org .apache .aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java: 269)[10:org.apache.aries.blueprint:0.3.1] at org .apache .aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java: 706)[10:org.apache.aries.blueprint:0.3.1]
.....
Caused by: org.dozer.MappingException: java.lang.ClassNotFoundException: org.dozer.util.DefaultClassLoader at org.dozer.util.MappingUtils.throwMappingException(MappingUtils.java: 82) at org.dozer.util.DefaultClassLoader.loadClass(DefaultClassLoader.java: 38)
        at org.dozer.DozerInitializer.loadBeanType(DozerInitializer.java:115)
        at org.dozer.DozerInitializer.initialize(DozerInitializer.java:97)

I do not thing this is a camel specific issue.. thus this mailing list. When I get headers info on the camel-dozer feature, I get the following bundles included:
mvn:net.sf.dozer/dozer-osgi/5.3.2
....

Is that the right library dozer-osgi to be used within smx?

I saw a Servicemix bundle:
<dependency>
        <groupId>org.apache.servicemix.bundles</groupId>
        <artifactId>org.apache.servicemix.bundles.dozer</artifactId>
        <version>5.3.2_1</version>
</dependency>

Is it be used somehow ?

Thanks for your help :)

Regards,
Guillaume.

---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042










Reply via email to