Java_home: jdk1.8.0_40
从命令行运行 liquibase-3.4.2 (liquibase.bat) 时,我得到:
INFO 1/31/16 3:52 PM: liquibase: Successfully released change log lock
Unexpected error running Liquibase: xml
SEVERE 1/31/16 3:52 PM: liquibase: xml
liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException: xml
at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:27)
at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:227)
at liquibase.Liquibase.update(Liquibase.java:202)
at liquibase.Liquibase.update(Liquibase.java:192)
at liquibase.integration.commandline.Main.doMigration(Main.java:1096)
at liquibase.integration.commandline.Main.run(Main.java:180)
at liquibase.integration.commandline.Main.main(Main.java:99)
Caused by: liquibase.exception.SetupException: xml
at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:279)
at liquibase.changelog.DatabaseChangeLog.load(DatabaseChangeLog.java:230)
at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:25)
... 6 more
Caused by: java.lang.ClassNotFoundException: xml
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:277)
... 8 more
在过去的 3 个小时里,我尝试了很多东西,但一无所获。 谁能帮忙?
谢谢:)
编辑。。。
这只发生在我尝试使用:
<includeAll path="changesets" resourceFilter="xml" relativeToChangelogFile="true"/>
在我的更新日志中.xml...changelog.xml 验证正常,并且 databaeChangeLog 元素的配置是这样的......
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd">
好吧,我现在戴上我的笨蛋帽。
resourceFilter
应该是一个类,而不是一个字符串。
道歉:)