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:
- driver=net.sourceforge.jtds.jdbc.Driver
- classpath=jtds-1.3.1.jar
- changeLogFile=../my-service/src/main/resources/db/migration/my-changelog.xml
- url=jdbc:jtds:sqlserver://localhost:1433/sample
- username=sa
- password=sa
- referenceUrl=hibernate:spring:com.my.dao.entities
- referenceDriver=net.sourceforge.jtds.jdbc.Driver
- referenceUsername=sa
- referencePassword=sa
- includeSystemClasspath=true
- logLevel=DEBUG
- >java -jar liquibase.jar diffChangeLog
- DEBUG 11.02.14 16:04:liquibase: Connected to sa@jdbc:jtds:sqlserver://localhost:1433/sample
- DEBUG 11.02.14 16:04:liquibase: Setting auto commit to false from true
- 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
- 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
- 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
- at liquibase.integration.commandline.CommandLineUtils.createDatabaseObject(CommandLineUtils.java:61)
- at liquibase.integration.commandline.Main.createReferenceDatabaseFromCommandParams(Main.java:1005)
- at liquibase.integration.commandline.Main.doMigration(Main.java:804)
- at liquibase.integration.commandline.Main.main(Main.java:133)
- 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
- at liquibase.database.DatabaseFactory.openConnection(DatabaseFactory.java:231)
- at liquibase.database.DatabaseFactory.openDatabase(DatabaseFactory.java:141)
- at liquibase.integration.commandline.CommandLineUtils.createDatabaseObject(CommandLineUtils.java:52)
- ... 3 more
- 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
- at liquibase.database.DatabaseFactory.openConnection(DatabaseFactory.java:226)
- ... 5 more
The same happent also for
- referenceDriver=com.microsoft.sqlserver.jdbc.SQLServerDriver
Does anybody have an idea?