Just done some testing, this is a rather strange one. If I call the
following:

System.out.println("resource is: "
         + this.getClass().getClassLoader().getResource(
"errorMessages_en_US.properties"));

It prints out the correct path of the jar file that it is contained in:

resource is:
jar:file://opt/apache-james_2.2/phoenix-bin/apps/james/SAR-INF/lib/client-ea
sySMS.jar!/errorMessages_en_US.properties

Now apparently ResourceBundle.getBundle() actually uses the
ClassLoader.getResource() mehtod to locate the bundle, however in my code
the getBundle() call is the very next call and it fails each time. 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.663 / Virus Database: 426 - Release Date: 20/04/2004
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to