Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 39026 invoked from network); 2 Jun 2004 18:38:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Jun 2004 18:38:53 -0000 Received: (qmail 13329 invoked by uid 500); 2 Jun 2004 18:38:38 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 13183 invoked by uid 500); 2 Jun 2004 18:38:37 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 13170 invoked by uid 99); 2 Jun 2004 18:38:37 -0000 Received: from [63.244.250.133] (HELO warhawk.mpi.com) (63.244.250.133) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 02 Jun 2004 11:38:37 -0700 Received: from lightning.mpi.com (lightning [63.244.252.11]) by warhawk.mpi.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i52IXpKq007350 for ; Wed, 2 Jun 2004 14:33:51 -0400 (EDT) Received: from US-VS1.corp.mpi.com (us-be2.corp.mpi.com [63.244.252.32]) by lightning.mpi.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i52IbrwV020667 for ; Wed, 2 Jun 2004 14:38:17 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Weird Classloader Scenario - Is This Possible? Date: Wed, 2 Jun 2004 14:37:28 -0400 Message-ID: <9C5166762F311146951505C6790A9CF80229BA4C@US-VS1.corp.mpi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Weird Classloader Scenario - Is This Possible? thread-index: AcRI0FSIj6tAgPqsQDSOCcKLyV/iEwAADegQ From: "Shapira, Yoav" To: "Tomcat Users List" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N H= i, You can try Thread.currentThread().getContextClassLoader() instead of handler.getClass().getClassLoader(). Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Matthew.Hanson@micorp.com [mailto:Matthew.Hanson@micorp.com] >Sent: Wednesday, June 02, 2004 2:37 PM >To: tomcat-user@jakarta.apache.org >Subject: Weird Classloader Scenario - Is This Possible? > >Hi, > >We have a fairly generic servlet framework that is used across more than >one web app deployed to tomcat 4.1.30 on win2k using java 1.4.2_03-b0= 2. >The framework was initially included in the WEB-INF/lib for each >application. However, I was hoping the framework jar could reside in= >shared/lib. This framework code basically uses a request handler to pass >incoming requests to a webapp-specific request processor. The reques= t >handler instantiates a request processor via >handler.getClass().getClassLoader().loadClass(SOME_PROCESSOR).newInst= an ce() >. > Basically, as expected, the classloader fails to load the request >processor class with the framework jar now in shared/lib. > >Is there a loader scheme that I can use in the shared/lib jar that ca= n be >used to instantiate classes from my webapp (WEB-INF/classes)? > >Thanks! >Matt Hanson This e-mail, including any attachments, is a confidential business com= munication, and may contain information that is confidential, propriet= ary and/or privileged. This e-mail is intended only for the individua= l(s) to whom it is addressed, and may not be saved, copied, printed, d= isclosed or used by anyone else. If you are not the(an) intended reci= pient, please immediately delete this e-mail from your computer system= and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org