Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Liquibase commandline: diff

$
0
0
Hi, colleagues. I have quistion regarding diff or diffChangeLog usage from liquibase commandline tool.
I have latest liquibase unzipped on my pc and I've put need drivers into lib folder.

So, here is my liquibase properties:
  1. driver=net.sourceforge.jtds.jdbc.Driver
  2. classpath=jtds-1.3.1.jar
  3. changeLogFile=../my-service/src/main/resources/db/migration/my-changelog.xml
  4. url=jdbc:jtds:sqlserver://localhost:1433/sample
  5. username=sa
  6. password=sa
  7. referenceUrl=hibernate:spring:com.my.dao.entities
  8. referenceDriver=net.sourceforge.jtds.jdbc.Driver
  9. referenceUsername=sa
  10. referencePassword=sa
  11. includeSystemClasspath=true
  12. logLevel=DEBUG
And I have next error. 
  1. >java -jar liquibase.jar diffChangeLog
  2. DEBUG 11.02.14 16:04:liquibase: Connected to sa@jdbc:jtds:sqlserver://localhost:1433/sample
  3. DEBUG 11.02.14 16:04:liquibase: Setting auto commit to false from true
  4. Liquibase diffChangeLog Failed: liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: Connection could not be created to hibernate:spring:com.my.dao.entities with driver net.sourceforge.jtds.jdbc.Driver.  Possibly the wrong driver for the given database URL
  5. SEVERE 11.02.14 16:04:liquibase: liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: Connection could not be created to hibernate:spring:com.my.dao.entities with driver net.sourceforge.jtds.jdbc.Driver.  Possibly the wrong driver for the given database URL
  6. liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: Connection could not be created to hibernate:spring:com.my.dao.entities with driver net.sourceforge.jtds.jdbc.Driver.  Possibly the wrong driver for the given database URL
  7.         at liquibase.integration.commandline.CommandLineUtils.createDatabaseObject(CommandLineUtils.java:61)
  8.         at liquibase.integration.commandline.Main.createReferenceDatabaseFromCommandParams(Main.java:1005)
  9.         at liquibase.integration.commandline.Main.doMigration(Main.java:804)
  10.         at liquibase.integration.commandline.Main.main(Main.java:133)
  11. Caused by: liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: Connection could not be created to hibernate:spring:com.my.dao.entities with driver net.sourceforge.jtds.jdbc.Driver.  Possibly the wrong driver for the given database URL
  12.         at liquibase.database.DatabaseFactory.openConnection(DatabaseFactory.java:231)
  13.         at liquibase.database.DatabaseFactory.openDatabase(DatabaseFactory.java:141)
  14.         at liquibase.integration.commandline.CommandLineUtils.createDatabaseObject(CommandLineUtils.java:52)
  15.         ... 3 more
  16. Caused by: liquibase.exception.DatabaseException: Connection could not be created to hibernate:spring:com.my.dao.entities with driver net.sourceforge.jtds.jdbc.Driver.  Possibly the wrong driver for the given database URL
  17.         at liquibase.database.DatabaseFactory.openConnection(DatabaseFactory.java:226)
  18.         ... 5 more

The same happent also for
  1. referenceDriver=com.microsoft.sqlserver.jdbc.SQLServerDriver
Does anybody have an idea?

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>