Tomcat classpath to master.xml

Hi.


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);

liquibase.update("");



But, i get this error:

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

at java.lang.Thread.run(Thread.java:744)



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()

                .getResource(“changelog-master.xml”);


        String master = masterURL.toString();


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

            master = master.substring(6);

        }


<span);