Cglib enhancer needs visibility into multiple classloaders in osgi environment
------------------------------------------------------------------------------

                 Key: TUSCANY-3278
                 URL: https://issues.apache.org/jira/browse/TUSCANY-3278
             Project: Tuscany
          Issue Type: Bug
    Affects Versions: Java-SCA-1.5
            Reporter: Brent Daniel


When Tuscany 1.5.x is run in an osgi environment with separation between an 
application classloader and bundle loaders, CglibProxyFactory.createProxy() 
will fail with a NoClassDefFound error because the classloader for the business 
interface does not have access to CgLib and the classloader for CgLib does not 
have access to the business interface. 

A similar problem was discovered in the 2.x stream and fixed there (see 
org.apache.tuscany.sca.binding.rmi.provider.RMIServiceBindingProvider and 
org.apache.tuscany.sca.common.java.classloader.ClassLoaderDelegate.) 

I'm not aware of anywhere else in the 1.5.1 branch that needs this classloader 
function, so this probably doesn't require moving the entire 
ClassLoaderDelegate class and common module back to 1.5.1. 

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