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=12501>.
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=12501

Custom loaderClass="..." ignored in <Loader>...</Loader>

           Summary: Custom loaderClass="..." ignored in <Loader>...</Loader>
           Product: Tomcat 4
           Version: 4.0.4 Final
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The implementation ignores custom loader class settings as in the following 
example:
<Loader className="org.apache.catalina.loader.WebappLoader" delegate="false" 
checkInterval="15" loaderClass="Custom.WebClassLoader" debug="1"/>

This behavior is due to the hardcoding of the initialization of a 
org.apache.cataline.loader.WebappClassLoader in WebappLoader.java, offending 
code segment below (lines 614-629):

if (parentClassLoader == null) {
  classLoader = new WebappClassLoader(container.getResources());
} else {
  classLoader = new WebappClassLoader(parentClassLoader, container.getResources
());
}

There is private variable named loaderClass which does 
contain "Custom.WebClassLoader", the value specified in the loaderClass="...". 
WebappLoader completely ignores this value and proceeds to load 
WebappClassLoader. 

I believe this is in error! WebappLoader should consider the directive given in 
the server.xml file and load the appropriate class!

Michael

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

Reply via email to