Tomcat Classloaders and loading properties files

2003-06-27 Thread Mike Curwen
Hello, So I'm writing a few library classes that I hope I'll be able to use over and over again. Because goodness knows, someone needs to invent the wheel again. ;) Anyways.. I want my classes to use properties files for configuration, and what I really want is something like: 1. Place the

RE: Tomcat Classloaders and loading properties files

2003-06-27 Thread Shapira, Yoav
Howdy, I'm expecting that when I go to load the properties, it will look in WEB-INF/classes *first*, from this snip from the CLASSLOADER doc Therefore, from the perspective of a web application, class or resource loading looks

Loading Properties Files

2002-12-04 Thread echambe1
Hello All: I have a handful of classes, some static, that contain commonly used functionality that my web applications are using. Now, I am adding in a new static method which will require the Class to load a properties file within the Static Initializer. My problem is that the class cannot

Re: Loading Properties Files

2002-12-04 Thread Will Hartung
From: [EMAIL PROTECTED] Subject: Loading Properties Files My problem is that the class cannot location my properties file. I am unable to use other suggested methods that I have noticed on this list since those problems involved Properties File within Servlets. After some testing, I

Re: Loading Properties Files

2002-12-04 Thread Roberto Bouza
] Subject: Loading Properties Files My problem is that the class cannot location my properties file. I am unable to use other suggested methods that I have noticed on this list since those problems involved Properties File within Servlets. After some testing, I determined for some

RE: Loading Properties Files

2002-12-04 Thread Jay Wright
And if you have a .war file? Then where would you put your properties files? -Original Message- From: Roberto Bouza [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 2:49 PM To: Tomcat Users List Subject: Re: Loading Properties Files Thats right. If you

RE: Loading Properties Files

2002-12-04 Thread micael
, December 04, 2002 2:49 PM To: Tomcat Users List Subject: Re: Loading Properties Files Thats right. If you don't have a .war file, you can use the classes dir inside your WEB-INF dir, and create a new directory like conf, the put inside all the properties files. In that way the ClassLoader

RE: Loading Properties Files

2002-12-04 Thread Jay Wright
If I understand you correctly, the properties file CANNOT be in the war file, it needs to be external. Right. -Original Message- From: micael [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 3:25 PM To: Tomcat Users List Subject: RE: Loading Properties Files

Re: Loading Properties Files

2002-12-04 Thread Will Hartung
to you properties files. Will - Original Message - From: Jay Wright [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, December 04, 2002 3:37 PM Subject: RE: Loading Properties Files If I understand you correctly, the properties file CANNOT be in the war file

RE: Loading Properties Files

2002-12-04 Thread Jacob Kjome
. Right. -Original Message- From: micael [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 3:25 PM To: Tomcat Users List Subject: RE: Loading Properties Files Depends upon what you want to do with the properties files and how you access them. Some ways of accessing them

RE: Loading Properties Files

2002-12-04 Thread micael
:25 PM To: Tomcat Users List Subject: RE: Loading Properties Files Depends upon what you want to do with the properties files and how you access them. Some ways of accessing them require that the name to access be relative to the classpath, others don't. You are better off to learn about

RE: Loading Properties Files

2002-12-04 Thread Craig R. McClanahan
On Wed, 4 Dec 2002, micael wrote: Date: Wed, 04 Dec 2002 17:13:16 -0800 From: micael [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Loading Properties Files A .war file is just a wrapper for a web application. I think

Loading properties files

2002-08-27 Thread Laurent Michenaud
Hi, Could u tell me what is not correct with that : Before we had that ( the properties files were in WEB-INF/classes ) and that works : package com.a2a.util ; public interface A2aConstantes { public static final String SCHEMA = java.util.ResourceBundle.getBundle(db).getString(schema); }

Re: Loading properties files

2002-08-27 Thread Alan Tingley - Iperia
Message - From: Laurent Michenaud [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 27, 2002 4:40 AM Subject: Loading properties files Hi, Could u tell me what is not correct with that : Before we had that ( the properties files were in WEB-INF/classes ) and that works : package

Re: Loading properties files

2002-08-27 Thread randie ursal
Message - From: Laurent Michenaud [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 27, 2002 4:40 AM Subject: Loading properties files Hi, Could u tell me what is not correct with that : Before we had that ( the properties files were in WEB-INF/classes ) and that works

RE: Loading properties files

2002-08-27 Thread Laurent Michenaud
I can't find the documentation u speak about. Could u give me the url ? -Message d'origine- De : Alan Tingley - Iperia [mailto:[EMAIL PROTECTED]] Envoyé : mardi 27 août 2002 12:15 À : Tomcat Users List Objet : Re: Loading properties files Your properties file must

Re: Loading properties files

2002-08-27 Thread Alan Tingley - Iperia
try http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html Al - Original Message - From: Laurent Michenaud [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, August 27, 2002 7:09 AM Subject: RE: Loading properties files I

Re: Loading properties files

2002-08-27 Thread Glenn Nielsen
the class loaders in Tomcat. Alan Tingley - Original Message - From: Laurent Michenaud [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 27, 2002 4:40 AM Subject: Loading properties files Hi, Could u tell me what is not correct with that : Before we had

RE: Loading properties files

2002-08-27 Thread Laurent Michenaud
So, how can i modify my interface so that it reads the file properties db in WEB-INF/config ? -Message d'origine- De : Glenn Nielsen [mailto:[EMAIL PROTECTED]] Envoyé : mardi 27 août 2002 15:32 À : Tomcat Users List Objet : Re: Loading properties files

Re: Loading properties files

2002-08-27 Thread Alan Tingley - Iperia
- Original Message - From: randie ursal [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, August 27, 2002 7:05 AM Subject: Re: Loading properties files why is it tomcat could not locate the property file if i place it on the package directory structure of my servlets

RE: Loading properties files

2002-08-27 Thread Craig R. McClanahan
On Tue, 27 Aug 2002, Laurent Michenaud wrote: Date: Tue, 27 Aug 2002 15:43:29 +0200 From: Laurent Michenaud [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: Loading properties files So, how can i

Re: Loading properties files

2002-08-27 Thread Glenn Nielsen
properties db in WEB-INF/config ? -Message d'origine- De : Glenn Nielsen [mailto:[EMAIL PROTECTED]] Envoyé : mardi 27 août 2002 15:32 À : Tomcat Users List Objet : Re: Loading properties files java.util.ResourceBundle.getBundle() uses the current ClassLoader to load your resource bundle