Cannot load JDBC driver class 'com.postgresql.jdbc.Driver'

11,376

Add the dependency on the postgresql driver to your pom.xml file

<dependency>
    <groupId>org.postgresql</groupId>
    <artifactId>postgresql</artifactId>
    <version>9.3-1101-jdbc41</version>
</dependency>
Share:
11,376
Charlie Harper
Author by

Charlie Harper

Updated on June 04, 2022

Comments

  • Charlie Harper
    Charlie Harper almost 2 years
    org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure HHH000342: Could not obtain connection to query metadata : Cannot load JDBC driver class 'com.postgresql.jdbc.Driver'
    

    I'm getting this warning while starting my application, can you help me how to solve it? It's WARN, no error or exception. (it is in my maven,spring,hibernate application), i have exceptions when i want to access my database via hibernate, but i'm not sure if this is causing the problem, thanks.