hibernate/hibernate-orm · error · ConfigurationException
Unable to locate specified properties file [%s]
Error message
Unable to locate specified properties file [%s]
What it means
Error "Unable to locate specified properties file [%s]" thrown in hibernate/hibernate-orm.
Source
Thrown at hibernate-core/src/main/java/org/hibernate/boot/cfgxml/internal/ConfigLoader.java:156
return loadProperties( stream );
}
catch (IOException e) {
throw new ConfigurationException(
"Unable to apply settings from properties file [" + file.getAbsolutePath() + "]",
e
);
}
finally {
try {
stream.close();
}
catch (IOException e) {
BOOT_LOGGER.unableToClosePropertiesFileStream( file.getAbsolutePath(), e );
}
}
}
catch (FileNotFoundException e) {
throw new ConfigurationException(
"Unable to locate specified properties file [" + file.getAbsolutePath() + "]",
e
);
}
}
private static Properties loadProperties(InputStream stream) throws IOException {
final var properties = new Properties();
properties.load( stream );
return properties;
}
}
View on GitHub (pinned to fad1729dce)
Solutions
- Create the referenced properties file or correct the path configured via hibernate configuration.
- Ensure the file is on the classpath or that the absolute file system path is correct.
- Check for typos and case mismatches in the file name.
When it happens
Trigger: A configuration resource (cfg.xml URL or properties file) cannot be opened or read.
Common situations: Unreadable or missing config files, wrong URLs, or IO errors while Hibernate loads settings during bootstrap.
AI-assisted analysis of hibernate/hibernate-orm@fad1729dce (2026-08-22).
Data as JSON: /api/errors/675a8d9a33336fe0.
Report an issue: GitHub.