If you put your properties in the src folder (as I think you should) you need to give ResourceBundle
a class-like qualified name, so that when application gets compiled, it can find the properties file in the classes folder.
In my case, for ex., I place them in my source folder, inside a package. Like this:
src/package/subpackage/subsubpackage/propertiesFile.properties
When I want to load the properties, I use this as the qualified name:
package.subpackage.subsubpackage.propertiesFile
This is the same way you would give your application a full qualified name for a class. The key here is that the properties file is getting copied to the classes folder inside the WAR. So your mistake was telling the ResourceBundle
to look into the src folder.