Yes, i got mistaken during debugging. Seems my camel does load the converter twice. One doing using qualified names (META-INF) and one using package scan. The second one is failling. I used an old jboss-camel librairy to make it work, but i still have the useless double loading.
If someone can tell me how to configure camel to use only fully qualified names :) ----- Mail original ----- De: "Willem Jiang" <willem.ji...@gmail.com> À: users@camel.apache.org Envoyé: Lundi 13 Février 2012 16:12:30 Objet: Re: camel and spring in a webapp Hi If you take a look at the code of CorePackageScanClassResolver you will find the the packages which are returned will not be scanned. On 2/13/12 6:10 PM, David Delbecq wrote: > Here i what i see in sources of camel-core-2.9.0 > > package org.apache.camel.impl.converter; > > import java.io.IOException; > > /** > * Will load all type converters from camel-core without classpath scanning, > which makes > * it much faster. > *<p/> > * The {@link CorePackageScanClassResolver} contains a hardcoded list of the > type converter classes to load. > */ > public class CoreTypeConverterLoader extends AnnotationTypeConverterLoader { > > public CoreTypeConverterLoader() { > super(new CorePackageScanClassResolver()); > } > > @Override > protected String[] findPackageNames() throws IOException { > return new String[]{"org.apache.camel.converter", > "org.apache.camel.component.bean", "org.apache.camel.component.file"}; > } > > } > > > so, yes, it's looking for "org.apache.camel.converter " in 2.9.0 > > ----- Mail original ----- > > De: "Willem.Jiang"<willem.ji...@gmail.com> > À: users@camel.apache.org > Envoyé: Vendredi 10 Février 2012 04:25:43 > Objet: Re: camel and spring in a webapp > > Hi, > > Camel does not try to load the annotated Converter from package of > 'org.apache.camel.converter' since Camel 2.8.0. > Can you check if you wrap the other version of camel into your war ? > > -- Willem ---------------------------------- FuseSource Web: http://www.fusesource.com Blog: http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang Weibo: willemjiang