Java 1.5, Java EE 5, WAS 6.1: Exception loading a resource bundle with ResourceBundle.getBundle(...)
Here's another issues that we are facing while migrating our application from current production environment to the new data center environment (see details below)
<ul>
<li>Current Production Environment : Java 1.4, Java EE 3, WAS 5.1, JSF 2.1</li>
<li>New Environment: Java 1.5, Java EE 5, WAS 6.1, JSF 2.1</li>
</ul>
Here we have a third party jar file with the following structure (check the image - pardon me hiding some details) <br>
![alt text][1]


  [1]: http://i43.tinypic.com/fxdqo0.jpg
<br>
This class has the code to load the database properties from a ResourceBundle (db.properties). Here is the code rendered out by Cavaj:
<pre>
    private static ResourceBundle getDBProperties()
    {
        if(dbProperties == null)
        {
            dbProperties = ResourceBundle.getBundle("db");
        }
        return dbProperties;
    }
</pre>

This application is working fine on the current environment. But somehow when we move the application to the new environment we get a "MissingResourceException" (see below):<br>

<pre>
Caused by: java.util.MissingResourceException: Can't find bundle for
base name db, locale en_US
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:863)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:832)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:576)
at
com.myco.wo.vs.util.OrderLovUtilities.getDBProperties(OrderLovUtilities.java:195)
</pre>

We tried following workarounds but none worked:
<ol>
<li>Renamed the db.properties as db_en_US.properties</li>
<li>Putting the properties file in the jar</li>
<li>moving the jar file at EAR level.</li>
</ol>

Please suggest on what could be wrong here. And what can we do to get it working :)

Regards,<br>
- Ashish
Java 1.5, Java EE 5, WAS 6.1: Exception loading a resource bundle with ResourceBundle.getBundle(...)
===

Here's another issues that we are facing while migrating our application from current production environment to the new data center environment (see details below)
<ul>
<li>Current Production Environment : Java 1.4, Java EE 3, WAS 5.1, JSF 2.1</li>
<li>New Environment: Java 1.5, Java EE 5, WAS 6.1, JSF 2.1</li>
</ul>
Here we have a third party jar file with the following structure (check the image - pardon me hiding some details) <br>
![alt text][1]


  [1]: http://i43.tinypic.com/fxdqo0.jpg
<br>
This class has the code to load the database properties from a ResourceBundle (db.properties). Here is the code rendered out by Cavaj:
<pre>
    private static ResourceBundle getDBProperties()
    {
        if(dbProperties == null)
        {
            dbProperties = ResourceBundle.getBundle("db");
        }
        return dbProperties;
    }
</pre>

This application is working fine on the current environment. But somehow when we move the application to the new environment we get a "MissingResourceException" (see below):<br>

<pre>
Caused by: java.util.MissingResourceException: Can't find bundle for
base name db, locale en_US
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:863)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:832)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:576)
at
com.myco.wo.vs.util.OrderLovUtilities.getDBProperties(OrderLovUtilities.java:195)
</pre>

We tried following workarounds but none worked:
<ol>
<li>Renamed the db.properties as db_en_US.properties</li>
<li>Putting the properties file in the jar</li>
<li>moving the jar file at EAR level.</li>
</ol>

Please suggest on what could be wrong here. And what can we do to get it working :)

Regards,<br>
- Ashish