Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 004529060 for ; Mon, 13 Feb 2012 18:03:46 +0000 (UTC) Received: (qmail 37892 invoked by uid 500); 13 Feb 2012 18:03:45 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 37824 invoked by uid 500); 13 Feb 2012 18:03:44 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 37816 invoked by uid 99); 13 Feb 2012 18:03:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Feb 2012 18:03:44 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of David.Delbecq@oma.be designates 193.190.231.70 as permitted sender) Received: from [193.190.231.70] (HELO bonnie2.oma.be) (193.190.231.70) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Feb 2012 18:03:38 +0000 Received: from zimbra-me.oma.be (zimbra-me.oma.be [193.190.249.146]) by bonnie2.oma.be (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id q1DI3GAX007879 for ; Mon, 13 Feb 2012 18:03:16 GMT Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra-me.oma.be (Postfix) with ESMTP id 685176F0002 for ; Mon, 13 Feb 2012 19:03:16 +0100 (CET) X-Virus-Scanned: amavisd-new at meteo.be Received: from zimbra-me.oma.be ([127.0.0.1]) by localhost (zimbra-me.oma.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ajxKcFv6m8wA for ; Mon, 13 Feb 2012 19:03:15 +0100 (CET) Received: from zimbra-me.oma.be (zimbra-me.oma.be [193.190.249.146]) by zimbra-me.oma.be (Postfix) with ESMTP id AF6386F0001 for ; Mon, 13 Feb 2012 19:03:15 +0100 (CET) Date: Mon, 13 Feb 2012 19:03:15 +0100 (CET) From: David Delbecq To: users@camel.apache.org Subject: Re: camel and spring in a webapp Message-ID: In-Reply-To: <4F39285E.3060703@gmail.com> Content-Type: multipart/alternative; boundary="=_baf58d2a-70b2-4e73-be1b-748fa7ca35ae" MIME-Version: 1.0 X-Originating-IP: [83.134.48.122] X-Mailer: Zimbra 7.1.3_GA_3346 (ZimbraWebClient - FF3.0 (Linux)/7.1.3_GA_3346) --=_baf58d2a-70b2-4e73-be1b-748fa7ca35ae Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Yes, i got mistaken during debugging. Seems my camel does load the converte= r twice. One doing using qualified names (META-INF) and one using package s= can. 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 n= ames :) ----- Mail original ----- De: "Willem Jiang" =C3=80: users@camel.apache.org Envoy=C3=A9: Lundi 13 F=C3=A9vrier 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 scannin= g, which makes > * it much faster. > *

> * The {@link CorePackageScanClassResolver} contains a hardcoded list of t= he type converter classes to load. > */ > public class CoreTypeConverterLoader extends AnnotationTypeConverterLoade= r { > > public CoreTypeConverterLoader() { > super(new CorePackageScanClassResolver()); > } > > @Override > protected String[] findPackageNames() throws IOException { > return new String[]{"org.apache.camel.converter", "org.apache.camel.compo= nent.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" > =C3=80: users@camel.apache.org > Envoy=C3=A9: Vendredi 10 F=C3=A9vrier 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 --=_baf58d2a-70b2-4e73-be1b-748fa7ca35ae--