Bug 28590

Summary: ClassLoader is wrong after jsp:include
Product: Tomcat 3 Reporter: Hugh J. Lee <hughjlee>
Component: ServletAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 3.3.x Nightly   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Hugh J. Lee 2004-04-26 08:03:44 UTC
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.
Comment 1 william.barker 2004-04-27 02:46:59 UTC
Fixed now in the CVS.