camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: camel and spring in a webapp (camel does not work on jboss?)
Date Mon, 13 Feb 2012 15:41:17 GMT
Hi,

I still don't get how the "org/apache/camel/converter" is loaded.
Do you use OSGi related technology?

I think you get work around it by using the camel-jboss component[1] to 
handle the issue of vfszip.

[1]http://camel.apache.org/camel-jboss.html

Willem

On 2/13/12 6:33 PM, David Delbecq wrote:
> Here is the result of step by step analysis in debug.
>
> Inside DefaultPackageScanClassResolver.find(PackageScanFilter test, String packageName,
ClassLoader loader, Set<Class<?>>  classes)
>
> My classloader is
> org.jboss.web.tomcat.service.WebCtxLoader$ENCLoader@2fb078b8
> packagename is org/apache/camel/converter
>
> getResources() return an url
> vfszip:/D:/applications/application servers/jboss-5.1.0.GA/server/default/deploy/be.meteo.intranet.rh.rh-web.war/WEB-INF/lib/camel-core-2.9.0.jar/org/apache/camel/converter/
> urlpath becomes /D:/applications/application servers/jboss-5.1.0.GA/server/default/deploy/be.meteo.intranet.rh.rh-web.war/WEB-INF/lib/camel-core-2.9.0.jar/org/apache/camel/converter/
>
> there is not "!" in path, so camel assume it's not a jar (mistake)
>
> and so
>
> File file = new File(urlPath);
> on line 281 points to an inexistant file /D:/applications/application servers/jboss-5.1.0.GA/server/default/deploy/be.meteo.intranet.rh.rh-web.war/WEB-INF/lib/camel-core-2.9.0.jar/org/apache/camel/converter/
>
> which ends in a FileNotFoundException (line 307)
>
>
> So i bet camel is unable to do an annotation scan on a jboss server?
>
>
>
>
>
> ----- Mail original -----
>
> De: "Claus Ibsen"<claus.ibsen@gmail.com>
> À: users@camel.apache.org
> Envoyé: Lundi 13 Février 2012 09:56:25
> Objet: Re: camel and spring in a webapp
>
> Hi
>
> What version of JBoss and JVM are you using?
>
>
> On Mon, Feb 13, 2012 at 9:52 AM, David Delbecq<delbd@meteo.be>  wrote:
>> It's an existing webapp bundled for jboss where we try to integrate camel. It would
be a lot of work to get it working on other container (out of the box, it fails on tomcat
and vmware) .
>> I checked the .war and jboss configuration. Jboss has no camel library i could find,
and the war only containes version 2.9.0 of Camel.
>>
>>
>>
>>
>> ----- Mail original -----
>>
>> De: "Willem Jiang"<willem.jiang@gmail.com>
>> À: users@camel.apache.org
>> Envoyé: Lundi 13 Février 2012 02:27:42
>> Objet: Re: camel and spring in a webapp
>>
>> Did you try to deploy the war into other web container like Tomcat?
>> BTW, can you double check the lib of war, if there is any other version
>> of camel ?
>> On Sun Feb 12 23:06:12 2012, David Delbecq wrote:
>>> This project uses only camel 2.9.0
>>>
>>> ----- Mail original -----
>>>
>>> De: "Willem.Jiang"<willem.jiang@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
>>
>>
>
>
>


-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
          http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Mime
View raw message