Answered on StackOverflow: http://stackoverflow.com/questions/33022755/liquibase-cannot-find-parser/33024865#33024865
Steve Donie
Principal Software Engineer
Datical, Inc. http://www.datical.com/
Answered on StackOverflow: http://stackoverflow.com/questions/33022755/liquibase-cannot-find-parser/33024865#33024865
Steve Donie
Principal Software Engineer
Datical, Inc. http://www.datical.com/
I am getting a Liquibase exception when running update.
Caused by: liquibase.exception.UnknownChangelogFormatException: Cannot find parser that supports <?xml version="1.0" encoding="UTF-8" standalone="no"?>
I thought Liquibase by default supports xml parsing so I am not sure of the case here. Am I missing a configuration when I initialize the class?
private lazy val liquibase: Liquibase = { val fsFO: ResourceAccessor = new FileSystemResourceAccessor val clFO: ResourceAccessor = new ClassLoaderResourceAccessor val contextClassLoader = Thread.currentThread().getContextClassLoader val threadClFO: ResourceAccessor = new ClassLoaderResourceAccessor(contextClassLoader) val database = DatabaseFactory.getInstance.findCorrectDatabaseImplementation(new JdbcConnection(connection)) new Liquibase(changeLog, new CompositeResourceAccessor(clFO, fsFO, threadClFO), database) } def update(): Unit = Try(liquibase.update(context)) match { case Success(_) => log.info("LIQUIBASE FINISHED: Update change log") case Failure(ex) => throw new Exception("LIQUIBASE FAILED: Update change log", ex) }