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: [EMAIL PROTECTED]


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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to