Hi All: I write a customized class loader which extends org.apache.catalina.loader.WebappClassLoader and define it in the server.xml. Such as: <Context path="" reloadable="false" docBase="D:\apache-tomcat-6.0.18_debug\hqgr" workDir="D:\apache-tomcat-6.0.18_debug\hqgr\work"> <Loader loaderClass="com.berheley.loader.tomcat6.LicWebappClassLoader"/> </Context> I override the method of findResourceInternal to do some works.
It works when I startup the tomcat server. The overrided method runs when the tomcat loads classes which imported in the class file. But when I import a class in the JSP file Such as <%...@page import="com.berheley.hcms.util.BasalInfo"%> The customized class loader does not run. The class org.apache.catalina.loader.WebappClassLoader runs instead. Any ideas? Thanks! -------------- Karl Yuan 2009-10-24 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org