3 Replies Latest reply on May 12, 2005 11:28 AM by Scott Stark

    MissingResourceException calling ResourceBundle.getBundle in

    Igor Klinchin Newbie

      Hi All,

      I am migrating the application from JBoss 4.0.1sp1 to 4.0.2 and I've got MissingResourceException when calling ResourceBundle.getBundle("version"); It works fine with 4.0.1sp1 but I wanter to stay on the pure release of JBoss.

      The packaging is like this: I have an EAR file. Inside it there is a WAR file and a bunch of JAR files (EJB's and just java libraries). Inside WAR file there is a WEB-INF\classes\version.properties file.

      I have WAR file in my EAR's META-INF\application.xml file defined in module/web section with web-uri and context-root nodes defined.

      Exception is this one:

      Caused by: java.util.MissingResourceException: Can't find bundle for base name version, locale en_US
      at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:804)
      at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773)
      at java.util.ResourceBundle.getBundle(ResourceBundle.java:511)

      Basically, that's it. It seems that something has been changed in class loader.

      Thank you for your help.