Hi, i’ve a classes inside a jar (imported with the local maven repositoty) whose purpose is to access a properties file, placed outside the jar (modules\web\src\application.properties). On local server deployment (my machine) the compiler shows this error: “Can’t find bundle for base name”, whereas in production mode, the error disappear. Any workaround?
This is a part of my class.
public class Application {
private static final String BUNDLE_NAME = “application”;//$NON-NLS-1$
static Logger log = Logger.getLogger(Application.class);
private static ResourceBundle RESOURCE_BUNDLE ;
static {
try {
RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
}
catch (Exception e) {
log.warn("application.properties mancante",e);
}
}
}