Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 92305 invoked from network); 5 Jun 2003 15:18:29 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 5 Jun 2003 15:18:29 -0000 Received: (qmail 20775 invoked by uid 97); 5 Jun 2003 15:20:44 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 20768 invoked from network); 5 Jun 2003 15:20:44 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 5 Jun 2003 15:20:44 -0000 Received: (qmail 80351 invoked by uid 500); 5 Jun 2003 15:15:24 -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 80294 invoked from network); 5 Jun 2003 15:15:24 -0000 Received: from unknown (HELO warhawk.mpi.com) (63.244.250.133) by daedalus.apache.org with SMTP; 5 Jun 2003 15:15:24 -0000 Received: from thunderbolt.mpi.com (thunderbolt.mpi.com [199.93.192.55]) by warhawk.mpi.com (Switch-2.2.6/Switch-2.2.6) with ESMTP id h55FFL625555 for ; Thu, 5 Jun 2003 11:15:21 -0400 (EDT) Received: from US-VS1.corp.mpi.com (us-be2.corp.mpi.com [199.93.195.21]) by thunderbolt.mpi.com (Switch-3.0.4/Switch-3.0.0) with ESMTP id h55FEkkH013112 for ; Thu, 5 Jun 2003 11:15:23 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.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: getResourceAsStream cached by Tomcat's Classloader? Date: Thu, 5 Jun 2003 11:15:17 -0400 Message-ID: <9C5166762F311146951505C6790A9CF8A6E61F@US-VS1.corp.mpi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: getResourceAsStream cached by Tomcat's Classloader? Thread-Index: AcMra4JJl7mecQ9kR6CElF0XQTn67AACa4IQ From: "Shapira, Yoav" To: "Tomcat Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Howdy, >I had similar issues with getResourceAsStream which caused me to go another >route. I now use: > >new File(getServletContext().getRealPath("modules.xml")) to read file= s in. Just remember if you deploy in a packed war file the above will NPE every time. Yoav Shapira 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