avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5027] New: - DefaultLogTargetFactoryManager does not use the context class loader
Date Thu, 22 Nov 2001 09:56:09 GMT
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:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>


Mime
View raw message