Tomcat classpath to master.xml


I starting migration from tomcat, i have call method to update database with this:

Liquibase liquibase = null;

Database database = DatabaseFactory.getInstance().findCorrectDatabaseImplementation(new JdbcConnection(connection));

liquibase = new Liquibase(“changelog-master.xml”, new FileSystemResourceAccessor(), database);


But, i get this error:

liquibase.exception.ChangeLogParseException: changelog-master.xml does not exist


How can I solve this?

Does the file actually exist? If so, where is it located? Finally, what does the running program think is the ‘current directory’? If you get all that worked out, you’ll at least be farther along. 

I change for this, now works.

        URL masterURL = Thread.currentThread().getContextClassLoader()


        String master = masterURL.toString();

        if (master.startsWith(“file:/”)) {

            master = master.substring(6);