[ 
https://issues.apache.org/jira/browse/TUSCANY-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Raymond Feng resolved TUSCANY-2764.
-----------------------------------

    Resolution: Fixed

A fix has been checked in under r734063 in sca-java-1.x branch. Now we have a 
ClassLoaderServiceDiscoverer which can take a classloader.

> Need a way to change or plug-in a different classloader in 
> ContextClassLoaderServiceDiscoverer.ContextClassLoaderServiceDiscoverer()
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2764
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2764
>             Project: Tuscany
>          Issue Type: Bug
>            Reporter: Rashmi Hunt
>
> Along the same lines of  'ContributionClassLoader' discussion earlier, there 
> needs a way to change or plug-in a different classloader to load registered 
> services which are under META-INF\services.
> The reason for this is, the environment which tries to bootstrap Tuscany may 
> have different classloader structure compared to JSE env  
>  
> Tuscany tries to load services using current thread's context classloader in 
> ContextClassLoaderServiceDiscoverer.ContextClassLoaderServiceDiscoverer()
> and based on different environments classloader structure, current thread's 
> context classloader may not be able to load service registered under 
> META-INF\service leading to services
> being null when Tuscany later tries to access them.
>  
> Need a way to change or plug-in a different classloader in 
> ContextClassLoaderServiceDiscoverer.ContextClassLoaderServiceDiscoverer()
>  

-- 
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