[
https://issues.apache.org/activemq/browse/CAMEL-577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43231#action_43231
]
Claus Ibsen commented on CAMEL-577:
-----------------------------------
I dont suppose that just removing the leading / would resolve the issue?
Freeman, can you provide a patch to fix it or any more hint/helps? Or attaching
a small sample project that illustrates the bug/problem in Camel.
> 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
> Reporter: Freeman Fang
>
> 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
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.