Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 87178 invoked from network); 9 Nov 2004 13:52:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Nov 2004 13:52:33 -0000 Received: (qmail 57931 invoked by uid 500); 9 Nov 2004 13:51:58 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 57863 invoked by uid 500); 9 Nov 2004 13:51:57 -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 57850 invoked by uid 99); 9 Nov 2004 13:51:57 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [63.244.250.133] (HELO warhawk.mpi.com) (63.244.250.133) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 09 Nov 2004 05:51:55 -0800 Received: from thunderbolt.mpi.com (thunderbolt [63.244.253.70]) by warhawk.mpi.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id iA9DprQ0012355 for ; Tue, 9 Nov 2004 08:51:53 -0500 (EST) Received: from US-VS1.corp.mpi.com (us-be1.corp.mpi.com [63.244.252.30]) by thunderbolt.mpi.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id iA9DpGBd028710 for ; Tue, 9 Nov 2004 08:51:43 -0500 (EST) X-MIMEOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: CGI ...yeah, I know (Tomcat 4.1.29) Date: Tue, 9 Nov 2004 08:51:44 -0500 Message-ID: <9C5166762F311146951505C6790A9CF80229C5CB@US-VS1.corp.mpi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: CGI ...yeah, I know (Tomcat 4.1.29) Thread-Index: AcTGXjiRO3iLssR2QXWIeJJfuzDVsQABJ9GQ 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, >I still have one question though, > >How come when I copied the source from 4.1.31 directly into my own class >(with no dependencies) I got ClassNotFound exceptions and it would no= t run Was it really a CNFE or a NoClassDefFoundError? You have to be very careful with dependencies once you start putting stuff in shared, common, and server classloader repositories. That's why I recommend never doing that, and just keeping everything in your WEB-INF/lib directory. The reason you must be very careful is that class com.foo loaded from shared/lib is not the same as com.foo loaded from common/lib or WEB-INF/lib. A class is unique within its classloader, and these are distinct classloaders. This leads to problems with applications that package classes such that some classes are in more than one repository= , or that require upwards (common/lib needing WEB-INF/lib for example) repository lookups. No-no. Yoav 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