Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 70100 invoked from network); 13 Feb 2002 16:12:59 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 13 Feb 2002 16:12:59 -0000 Received: (qmail 26002 invoked by uid 97); 13 Feb 2002 16:12:37 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 25986 invoked by uid 97); 13 Feb 2002 16:12: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 25974 invoked from network); 13 Feb 2002 16:12:36 -0000 From: "Bryan Austad" To: "Tomcat Users List" Subject: RE: Loading property files using ClassLoader.getSystemResource() Date: Wed, 13 Feb 2002 09:20:36 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: X-OriginalArrivalTime: 13 Feb 2002 16:13:17.0534 (UTC) FILETIME=[58CC47E0:01C1B4A9] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Is the wrapper.properties file relevant when it comes to Tomcat 4.0.2? -----Original Message----- From: Randy Layman [mailto:randy.layman@aswethink.com] Sent: Wednesday, February 13, 2002 4:32 AM To: 'Tomcat Users List' Subject: RE: Loading property files using ClassLoader.getSystemResource() First, you could use getResource instead of getSystemResource. System Resource doesn't use the class loader delegation and only uses the root class loader. Second, if you don't want to change your code, you need to modify the wrapper.properties file. In there it builds up a classpath that is then passed on to Java. You could add your directory to that classpath. Randy > -----Original Message----- > From: Bryan Austad [mailto:baustad@xtendsoft.com] > Sent: Tuesday, February 12, 2002 7:58 PM > To: tomcat-user@jakarta.apache.org > Subject: Loading property files using ClassLoader.getSystemResource() > > > I use ClassLoader.getSystemResource() to load property files > through out my > application. I then am able to set the directory of where > these property > files are located in the CLASSPATH. I then can load the > property files. > With Tomcat 4.0.2 using the NT/2K service, and cannot specify > a directory of > where these property files are, therefore they are not > loading. I tried > putting these resources(property files) in the > WEB-INF/classes directory, > the %CATALINA_HOME%/classes directory, or the > %CATALINA_HOME%/common/classes > directory. Still I am unable to load the property files. I > even tried the > lib directories at all levels. The only way I could get this > to work was > modifying the catalina.bat file and appending to the > CLASSPATH. I want it > to work with the NT/2K service though. Is it possible? Or > am I going to > need to redesign how I load the property files in my application? > > Thanks > Bryan > > > -- > To unsubscribe: > For additional commands: > Troubles with the list: > -- To unsubscribe: For additional commands: Troubles with the list: -- To unsubscribe: For additional commands: Troubles with the list: