You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by "Guillaume Sauthier (JIRA)" <ji...@apache.org> on 2005/08/17 17:43:54 UTC

[jira] Updated: (WSS-17) Use Context ClassLoader when loading CallbackHandler

     [ http://issues.apache.org/jira/browse/WSS-17?page=all ]

Guillaume Sauthier updated WSS-17:
----------------------------------

    Attachment: wss4j-loader.patch

I just browsed quickly the WSS4J codebase, I may have missed other places where Class.forName is used ...

> Use Context ClassLoader when loading CallbackHandler
> ----------------------------------------------------
>
>          Key: WSS-17
>          URL: http://issues.apache.org/jira/browse/WSS-17
>      Project: WSS4J
>         Type: Improvement
>  Environment: JOnAS 4.6.0
>     Reporter: Guillaume Sauthier
>     Assignee: Davanum Srinivas
>  Attachments: wss4j-loader.patch
>
> WSS4Jhandler try to load the CallbackHandler classes with a simple Class.forName("MyClass")
> This may fail for various reasons (CH class not in the same ClassLoader than WSS4J, ...).
> A safer implementation is to use Thread.currentThread().getContextClassLoader() to obtain the Thread ClassLoader and try to load the CH class from that loader.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org