DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28590>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28590

ClassLoader is wrong after jsp:include

           Summary: ClassLoader is wrong after jsp:include
           Product: Tomcat 3
           Version: 3.3.x Nightly
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Servlet
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Jdk12Interceptor.postService() sets thread context class loader at postService
() time of the included jsp, so the rest part of the outer jsp doesn't run in 
web app class loader.

Test jsp:

<%out.println(Thread.currentThread().getContextClassLoader());%>
<jsp:include page="/any.jsp" flush="true"/>
<%out.println(Thread.currentThread().getContextClassLoader());%>

Output:

org.apache.tomcat.util.depend.DependClassLoader12Impl
...
java.net.FactoryURLClassLoader

Tomcat 4 doesn't have this bug.

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

Reply via email to