Tuscany Jaas authentication uses Tuscany classloader to load callback class 
from contribution
---------------------------------------------------------------------------------------------

                 Key: TUSCANY-2087
                 URL: https://issues.apache.org/jira/browse/TUSCANY-2087
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Core Runtime
    Affects Versions: Java-SCA-1.1
            Reporter: Rajini Sivaram
            Assignee: Rajini Sivaram
             Fix For: Java-SCA-1.2


org.apache.tuscany.sca.policy.security.jaas.JaasAuthenticationPolicyHandler.beforeInvoke
 uses Class.forName without specifying a classloader to load a callback class 
from a contribution. This will only work if the contribution and the Tuscany 
extension tuscany-policy-security are loaded using the same classloader. The 
code should use the contribution's model resolver/classloader to obtain the 
callback class, though I am not sure where it is expected to get it from.

samples/calculator-implementation-policies fails when Tuscany is run under OSGi 
because the classloaders used for Tuscany and the contributions are different.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to