hibernate/hibernate-orm · error · ConnectionProviderConfigurationException

No JDBC URL specified by property…

Error message

No JDBC URL specified by property 'jakarta.persistence.jdbc.url'

What it means

jdbcUrl found no value for the jakarta.persistence.jdbc.url / hibernate.connection.url setting, so the DriverManager-based provider has nothing to connect to. The missing input is the JDBC URL configuration property.

Solutions

  1. Set 'jakarta.persistence.jdbc.url' (or 'hibernate.connection.url') to a valid JDBC URL
  2. Provide the URL in persistence.xml or the configuration properties
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at hibernate-core/src/main/java/org/hibernate/engine/jdbc/connections/internal/DriverManagerConnectionProvider.java:206 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of hibernate/hibernate-orm@fad1729dce (2026-08-22). Data as JSON: /api/errors/215688832e5a85eb. Report an issue: GitHub.

Appendix: source

Thrown at hibernate-core/src/main/java/org/hibernate/engine/jdbc/connections/internal/DriverManagerConnectionProvider.java:206

	}

	private static void logAvailableDrivers() {
		CONNECTION_INFO_LOGGER.jdbcDriverNotSpecified();
		final var list = new StringBuilder();
		DriverManager.drivers()
				.forEach( driver -> {
					if ( !list.isEmpty() ) {
						list.append( ", " );
					}
					list.append( driver.getClass().getName() );
				} );
		CONNECTION_INFO_LOGGER.availableJdbcDrivers( list.toString() );
	}

	private static String jdbcUrl(Map<String, Object> configuration) {
		final String url = (String) configuration.get( URL );
		if ( url == null ) {
			throw new ConnectionProviderConfigurationException( "No JDBC URL specified by property '" + JAKARTA_JDBC_URL + "'" );
		}
		return url;
	}

	private static ConnectionCreatorFactory getConnectionCreatorFactory(
			Map<String, Object> configuration, ServiceRegistry serviceRegistry) {
		final Object connectionCreatorFactory = configuration.get( CONNECTION_CREATOR_FACTORY );
		final ConnectionCreatorFactory factory;
		if ( connectionCreatorFactory instanceof ConnectionCreatorFactory instance ) {
			factory = instance;
		}
		else if ( connectionCreatorFactory != null ) {
			factory = loadConnectionCreatorFactory( connectionCreatorFactory.toString(), serviceRegistry );
		}
		else {
			factory = null;
		}
		return factory == null ? ConnectionCreatorFactoryImpl.INSTANCE : factory;

View on GitHub (pinned to fad1729dce)