Failed to locate resource bundle [loggingKeys] for locale [en] for enum type [logging.LoggingKeys]


(Rahul Verma) #1

The code is able to find the resources in my project but only one java code in which Cal10 java annotation is used , is not able to recognize the property file. Resource Bundle concept is used. I am not able to figure out the issue.

My Java class is like below in src/main/java.

@BaseName(“loggingKeys”) @LocaleData(defaultCharset = “UTF-8”, value = { @Locale(“en”) })

public enum LoggingKeys { …

Now the properties file is under src/main/resources in the SAME PACKAGE … loggingKeys_en.properties.

Its giving this error

Failed to locate resource bundle [loggingKeys] for locale [en] for enum type [logging.LoggingKeys]