You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by bu...@apache.org on 2001/11/22 10:56:09 UTC

DO NOT REPLY [Bug 5027] New: - DefaultLogTargetFactoryManager does not use the context class loader

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5027>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5027

DefaultLogTargetFactoryManager does not use the context class loader

           Summary: DefaultLogTargetFactoryManager does not use the context
                    class loader
           Product: Avalon
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Excalibur
        AssignedTo: avalon-dev@jakarta.apache.org
        ReportedBy: leo.sutic@inspireinfrastructure.com


DefaultLogTargetFactoryManager does not use the context class loader when 
loading the LogTargetFactory. This leads to all sorts of classloader issues.

Line 86 should be changed from:

logTargetFactory =
                    (LogTargetFactory)
this.getClass().getClassLoader().loadClass( factoryClass ).newInstance();


To:

logTargetFactory =
                    (LogTargetFactory)
Thread.currentThread().getContextClassLoader().loadClass( 
factoryClass ).newInstance();

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>