Facing problem with getBundle() method using properties file

Hi,

I have a applet which invokes swing application.

For I18N of the application i have used properties file which are stored on the apache web server.

ex: the following properties file are defined on the server are

1) Myresource.properties

2) Myresource_en_US.properties

The problem is whenever my swing code calls getBundle() method using the locale defined as "en,US" I get the following errors in the logs of apache server ::

[error] [client 1.1.1.1] File does not exist: /com/packagename/Myresource.class

[error] [client 1.1.1.1] File does not exist: /com/packagename/Myresource.properties

[error] [client 1.1.1.1] File does not exist: /com/packagename/Myresource_en.class

[error] [client 1.1.1.1] File does not exist: /com/packagename/Myresource_en.properties

[error] [client 1.1.1.1] File does not exist: /com/packagename/Myresource_en_US.class

[error] [client 1.1.1.1] File does not exist: /com/packagename/Myresource_en_US.properties

Note: The I18N works fine except the above errors in the server log.

As far i know the getBundle() method should not look for Myresource.properties file if it finds Myresource_en_US.properties as i have created Myresource_en_us.properties on the server.

Does anyone know why getBundle looks for Myresource.properties even after getting the Myresource_en_us.properties file.

I am using JDK 1.3 so is it problem of the JDK and the version of the apache web server is 1.3

I will be grateful if anyone can find out the problem or solution.

Thanks

[1607 byte] By [enjoystara] at [2007-10-2 17:15:32]
# 1

> As far i know the getBundle() method should not look

> for Myresource.properties file if it finds

> Myresource_en_US.properties as i have created

> Myresource_en_us.properties on the server.

Your knowledge is wrong, then.

> Does anyone know why getBundle looks for

> Myresource.properties even after getting the

> Myresource_en_us.properties file.

Because there could be properties in the Myresource.properties file that are not overridden by a property with the same name in the Myresource_en_us.properties file.

DrClapa at 2007-7-13 18:31:02 > top of Java-index,Desktop,I18N...
# 2
But is it a REAL error or just a warning try to show some file were not found. It's very annoy to customer.
daifenga at 2007-7-13 18:31:02 > top of Java-index,Desktop,I18N...