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

Embedded Catalina does not use context classloader

           Summary: Embedded Catalina does not use context classloader
           Product: Tomcat 4
           Version: 4.1.18
          Platform: PC
        OS/Version: Windows 9x
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Catalina begins its chain of classloaders starting with the system classloader 
instead of the initial thread's context classloader.  When embedding Catalina 
from a thread that uses a classloader that is not the system classloader but 
instead a descendant, a jsp class cannot be found by the WebAppClassLoader.  
The missing class is loaded in the initial thread's context classloader.  
After taking a cursory look at the code, it appears that Catalina does not 
assure that the initial context classloader is an ancestor to the classloaders 
it creates. 

The end result is that the embedded Catalina serves static html pages but not 
jsp pages.

The application needs to be shielded from the components that Catalina uses, 
which contain different versions of classes used by the application, so it 
cannot simply load the Catalina components in the system classloader.

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

Reply via email to