You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/09/06 23:47:43 UTC

DO NOT REPLY [Bug 22961] New: - WebAppClassLoader tries to load class from system classloader twice

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

WebAppClassLoader tries to load class from system classloader twice

           Summary: WebAppClassLoader tries to load class from system
                    classloader twice
           Product: Tomcat 5
           Version: 5.0.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: tagunov@motor.ru


Just have been reading WebAppClassLoader.java for self-education,
and it seems that every 
class not found in the system ClassLoader
is being attempted to be loaded from it twice (some 
code has been
removed):

        // (0.2)
            clazz = system.loadClass(name);
            if (clazz != null) 
{
                return (clazz);
            }
        // (1)
        
            ClassLoader loader = parent;
            if (loader == null)
                loader 
= system;
            try {
                clazz = loader.loadClass(name);