Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 67136 invoked from network); 1 Jun 2000 13:57:18 -0000 Received: from threshold3.jpmorgan.com (HELO jpmorgan.com) (169.71.1.12) by locus.apache.org with SMTP; 1 Jun 2000 13:57:18 -0000 Received: (from uucp@localhost) by jpmorgan.com (8.8.5/8.8.5) id JAA09013 for ; Thu, 1 Jun 2000 09:56:55 -0400 (EDT) Received: from jpmmailhost4.ny.jpmorgan.com(198.75.231.102) by threshold3.jpmorgan.com via smap (V4.2) id xma006948; Thu, 1 Jun 00 09:53:46 -0400 Received: from nyc-ntgw-n01.ny.jpmorgan.com (nyc_smtpmta_02.ny.jpmorgan.com [146.149.150.22]) by jpmmailhost4.ny.jpmorgan.com (8.9.1a/8.9.1) with SMTP id JAA15361 for ; Thu, 1 Jun 2000 09:53:46 -0400 (EDT) Received: by nyc-ntgw-n01.ny.jpmorgan.com(Lotus SMTP MTA v4.6.4 (830.2 3-23-1999)) id 852568F1.004C511C ; Thu, 1 Jun 2000 09:53:34 -0400 X-Lotus-FromDomain: JPMORGAN@SMTP From: "Ken X Horn" To: tomcat-dev@jakarta.apache.org Message-ID: <852568F1.004C4FB1.00@nyc-ntgw-n01.ny.jpmorgan.com> Date: Thu, 1 Jun 2000 14:52:54 +0100 Subject: WebApps / ClassLoaders / AdaptiveClassLoader Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hi, Our application needs to load a bunch of classes at runtime (based on a config in a db). I wanted to use an instance of AdaptiveClassLoader (ACL), but couldn't because the classes to be loaded, need to reference the classes loaded by the web app class loader, but the ACL does not support the parent method of ClassLoader. I tried subclassing ACL but this makes the code messy, and overly complicated. In the end I cloned it as a workaround. The code change is minimal (extra constructor and a change to loadClass). Is there a reason ACL doesn't support parent class loaders? Anybody want the patch? Also, the ACL throws an exception if one of the File's passed doesn't exist -- was thinking of making it just remove it from the repository, in order to emulate the system CLASSPATH behaviour more. Opinions? Ken. This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan & Co. Incorporated, its subsidiaries and affiliates.