Error: Unable to initialize main class liquibase.integration.commandline.Main Caused by: java.lang.NoClassDefFoundError: ch/qos/logback/core/filter/Filter

Description


C:\liquibase-3.6.3-bin>java -jar liquibase.jar --driver=com.mysql.jdbc.Driver --classpath=mysql-connector-java-8.0.15.jar --username=dbpoc --password=liquibase --url=jdbc:mysql://dbpoc.cjypoezz8hzj.eu-west-1.rds.amazonaws.com:3306/dbpoc --changeLogFile=changeset1.xml update Error: Unable to initialize main class liquibase.integration.commandline.Main Caused by: java.lang.NoClassDefFoundError: ch/qos/logback/core/filter/Filter

Environment

Windows

Activity

Show:
Berry Holtrust
July 25, 2019, 9:14 PM

Every .jar file in the ‘lib’ directory needs to be on the classpath. I would suggest using the .bat file and placing the mysql connector jar inside the ‘lib’ directory, removing the '--classpath' argument you used while keeping the rest and passing them to the liquibase.bat file.

 

Disclaimer: Not a Liquibase developer or associated in any other way.

Reporter

SARANG SIRSIKAR

Components

Affects versions

Priority

Blocker
Configure