Hi Claus,
I reupload the patch.
Cheers
Freeman
Claus Ibsen wrote:
Hi
Just a very quick glimpse. I gotta do some work for the client so cant peek to
much.
Isn't there a stable OSGI pendency for felix that can be used instead of
1.1.0-SNAPSHOT or whatever it was?
And are we sure its the spring osgi bundle classpath loader that is used all
the time?
Med venlig hilsen
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk
-----Original Message-----
From: Freeman Fang [mailto:[EMAIL PROTECTED]
Sent: 11. juni 2008 13:00
To: [email protected]
Subject: Re: [jira] Updated: (CAMEL-577) ResolverUtil can't resolve class under
osgi enviroment
Hi Team,
Can someone review and apply this patch?
Thanks
Freeman
Freeman Fang (JIRA) wrote:
[
https://issues.apache.org/activemq/browse/CAMEL-577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Freeman Fang updated CAMEL-577:
-------------------------------
Attachment: CAMEL-577.patch
ResolverUtil can't resolve class under osgi enviroment
------------------------------------------------------
Key: CAMEL-577
URL: https://issues.apache.org/activemq/browse/CAMEL-577
Project: Apache Camel
Issue Type: Improvement
Components: camel-core
Affects Versions: 1.3.0
Reporter: Freeman Fang
Fix For: 1.4.0
Attachments: CAMEL-577.patch
in method of
protected void find(Test test, String packageName, ClassLoader loader)
it try to load class from directory or jar, it works for standalone mode.
But if the classloader of the method is osgi bundle class loader, it will fail
since the getResource(packgename) return neither directory nor jar
for example, package name is org/apache/camel/convert, then what returned is
/org/apache/camel/convert, so both loadImplementationsInDirectory and
loadImplementationsInJar doesn't work in this case