liquibase.exception.DatabaseException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Liquibase Hibernate Plugin Does Not Work
    via Stack Overflow by Jazzepi
    ,
  • I am having trouble getting liquibase to work in my environment-- it seems unable to find the postgresql jdbc driver, even when I add the jar to the classpath via the following methods: * maven plugin dependencies * maven project dependencies * liquibase command line classpath argument * liquibase.properties classpath entry * adding jar to {{$LIQUIBASE_HOME/lib}} command line version: {code} $ liquibase --changeLogFile=src/main/resources/db/changelog/db.changelog-master.yaml --defaultsFile=src/main/resources/db/liquibase.properties --logLevel=debug --classpath="/Users/jwand/.m2/repository/org/postgresql/postgresql/9.4.1211/postgresql-9.4.1211.jar" diffChangeLog Unexpected error running Liquibase: java.lang.RuntimeException: Cannot find database driver: org.postgresql.Driver SEVERE 10/5/16 2:37 PM: liquibase: java.lang.RuntimeException: Cannot find database driver: org.postgresql.Driver liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: java.lang.RuntimeException: Cannot find database driver: org.postgresql.Driver at liquibase.integration.commandline.CommandLineUtils.createDatabaseObject(CommandLineUtils.java:127) at liquibase.integration.commandline.Main.doMigration(Main.java:954) at liquibase.integration.commandline.Main.run(Main.java:184) at liquibase.integration.commandline.Main.main(Main.java:103) Caused by: liquibase.exception.DatabaseException: java.lang.RuntimeException: Cannot find database driver: org.postgresql.Driver at liquibase.database.DatabaseFactory.openConnection(DatabaseFactory.java:247) at liquibase.database.DatabaseFactory.openDatabase(DatabaseFactory.java:151) at liquibase.integration.commandline.CommandLineUtils.createDatabaseObject(CommandLineUtils.java:85) ... 3 more Caused by: java.lang.RuntimeException: Cannot find database driver: org.postgresql.Driver at liquibase.database.DatabaseFactory.openConnection(DatabaseFactory.java:199) ... 5 more For more information, use the --logLevel flag {code} Maven version: {code} $ mvn liquibase:diff ... Error setting up or running Liquibase: liquibase.exception.DatabaseException: java.lang.RuntimeException: Cannot find database driver: org.postgresql.Driver}} {code} I have included postgres in plugin dependencies (and I checked to make sure that jar does include the driver class): {code} <plugin> <groupId>org.liquibase</groupId> <artifactId>liquibase-maven-plugin</artifactId> <configuration> <propertyFile>src/main/resources/db/liquibase.properties</propertyFile> </configuration> <dependencies> <dependency> <groupId>org.liquibase.ext</groupId> <artifactId>liquibase-hibernate4</artifactId> <version>3.5</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>4.1.7.RELEASE</version> </dependency> <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-jpa</artifactId> <version>1.7.3.RELEASE</version> </dependency> <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <version>9.4.1211</version> </dependency> </dependencies> </plugin> {code} liquibase.properties: {code} driver=org.postgresql.Driver url=jdbc:postgresql://localhost:6502/dbname username=username password=password changeLogFile=src/main/resources/db/liquibase-outputChangeLog.xml referenceUrl=hibernate:spring:com.foo.bar.entity? dialect=org.hibernate.dialect.PostgreSQL82Dialect {code}
    via by Josh Wand,
  • GitHub comment 1615#182318681
    via GitHub by divelgrom
    ,
  • GitHub comment 1617#202166608
    via GitHub by RRodrigoR
    ,
    • liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: java.lang.RuntimeException: Cannot find database driver: Driver class was not specified and could not be determined from the url () at liquibase.integration.commandline.CommandLineUtils.createDatabaseObject(CommandLineUtils.java:157) at liquibase.integration.commandline.Main.doMigration(Main.java:915) at liquibase.integration.commandline.Main.run(Main.java:180) at liquibase.integration.commandline.Main.main(Main.java:99) Caused by: liquibase.exception.DatabaseException: java.lang.RuntimeException: Cannot find database driver: Driver class was not specified and could not be determined from the url () at liquibase.database.DatabaseFactory.openConnection(DatabaseFactory.java:247) at liquibase.database.DatabaseFactory.openDatabase(DatabaseFactory.java:151) at liquibase.integration.commandline.CommandLineUtils.createDatabaseObject(CommandLineUtils.java:85) ... 3 more Caused by: java.lang.RuntimeException: Cannot find database driver: Driver class was not specified and could not be determined from the url () at liquibase.database.DatabaseFactory.openConnection(DatabaseFactory.java:199) ... 5 more
    No Bugmate found.