MissingResourceException due to class loader constallation (caller not in WEB-INF/classes)
问题 I get a MissingResourceException when accessing a resource bundle. The problem comes up due to my specific class loader constallation. I am trying to read a text.properties from within a class which resides under JBOSS_HOME/server/myServer/myDeployDir/myEAR/myJAR.jar (note: the calling class is not in WEB-INF/classes). The text.properties file is here JBOSS_HOME/server/myServer/myDeployDir/myEAR/myWAR/WEB-INF/classes. When running the following code: Locale locale = new Locale ("de", "DE");