[ 
https://issues.apache.org/activemq/browse/CAMEL-577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43423#action_43423
 ] 

Freeman Fang commented on CAMEL-577:
------------------------------------

sure, paste some log

16:10:58,355 | TRACE | pool-5-thread-1  | ResolverUtil                     | 
g.apache.camel.util.ResolverUtil  356 | Searching in 
bundle:org.apache.cxf.cxf-bundle [47]
16:10:58,365 | TRACE | pool-5-thread-1  | ResolverUtil                     | 
g.apache.camel.util.ResolverUtil  356 | Searching in 
bundle:org.springframework.bundle.spring.tx [48]
16:10:58,367 | TRACE | pool-5-thread-1  | ResolverUtil                     | 
g.apache.camel.util.ResolverUtil  356 | Searching in 
bundle:org.apache.camel.camel-core [49]
16:10:58,368 | TRACE | pool-5-thread-1  | ResolverUtil                     | 
g.apache.camel.util.ResolverUtil  456 | Testing for class 
org.apache.camel.converter.CamelConverter$1 matches criteria [annotated with 
@Converter]
16:10:58,369 | TRACE | pool-5-thread-1  | ResolverUtil

> 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
>            Assignee: Claus Ibsen
>             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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to