Resource loader can't load changelog file

Description

I'm using SpringLiquibase. Defined like:

1 2 3 4 5 6 final SpringLiquibase springLiquibase = new SpringLiquibase(); springLiquibase.setDefaultSchema("users"); springLiquibase.setDataSource(dataSource); springLiquibase.setChangeLog("classpath:changelog-users.xml"); springLiquibase.setResourceLoader(new DefaultResourceLoader()); springLiquibase.afterPropertiesSet();

Also I have jar file mysql.jar, which has structure like:

1 2 3 mysql.jar - src - changelog-users.xml

And then I'm running this jar via

1 java -jar mysql.jar --init

All this stuff finishes with exception

1 2 3 4 5 6 7 8 java.io.FileNotFoundException: class path resource [] cannot be resolved to URL because it does not exist at org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:178) at liquibase.integration.spring.SpringLiquibase$SpringResourceOpener.init(SpringLiquibase.java:74) at liquibase.resource.AbstractResourceAccessor.<init>(AbstractResourceAccessor.java:22) at liquibase.integration.spring.SpringLiquibase$SpringResourceOpener.<init>(SpringLiquibase.java:64) at liquibase.integration.spring.SpringLiquibase.createResourceOpener(SpringLiquibase.java:388) at liquibase.integration.spring.SpringLiquibase.createLiquibase(SpringLiquibase.java:349) at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:300)

Which completely fail liquibase provisioning.

May help: version 3.1.1 works fine as well as 2.0.5, which I used before.

Environment

Ubuntu 12.04, Maven 3, MySQL 5.6.21

Status

Assignee

Unassigned

Reporter

SergeyK

Labels

None

Components

Fix versions

Affects versions

3.2.0
3.2.1
3.3.0
3.2.3
3.2.2

Priority

Major