how to pass the test XmlConfigBuilderTest of tag3.5.7

19 views
Skip to first unread message

zihao jia

unread,
Oct 9, 2024, 10:49:24 PM10/9/24
to mybatis-user
When i run the Unit test - XmlConfigBuilderTest.shouldSuccessfullyLoadMinimalXMLConfigFile, it throws a exception "org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 24; columnNumber: 123; 文档根元素 "configuration" 必须匹配 DOCTYPE 根 "null"", i read some issues and know that it want to adapt both dtd and xsd, but i can't run the test successfully.  I want to known how to solve it.

Iwao AVE!

unread,
Nov 22, 2024, 6:32:19 PM11/22/24
to mybati...@googlegroups.com
The DOCTYPE exists, so I'm not sure why it fails.
Does it pass if you execute the test using the maven command?

./mvnw clean test -Dlicense.skip=true -Dtest=XmlConfigBuilderTest#shouldSuccessfullyLoadMinimalXMLConfigFile



On Thu, Oct 10, 2024 at 11:49 AM zihao jia <jiazi...@gmail.com> wrote:
When i run the Unit test - XmlConfigBuilderTest.shouldSuccessfullyLoadMinimalXMLConfigFile, it throws a exception "org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 24; columnNumber: 123; 文档根元素 "configuration" 必须匹配 DOCTYPE 根 "null"", i read some issues and know that it want to adapt both dtd and xsd, but i can't run the test successfully.  I want to known how to solve it.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mybatis-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/e217e7b1-5737-4176-9972-92d7b559ee15n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages