301 moved permanently

Since few minutes, impossible to start the app whis liquibase 3.9.0 . Can’t validate XML and get http 301 code. Have you difficulty with the xsd ? how can we fix that ? upgrade ?

Caused by: liquibase.exception.ChangeLogParseException: Error parsing line 2 column 35 of config/liquibase/changelog/20201203151641_changelog.xml: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '301 Moved Permanently'.
	at liquibase.parser.core.xml.XMLChangeLogSAXParser.parseToNode(XMLChangeLogSAXParser.java:120)
	at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:15)
	at liquibase.changelog.DatabaseChangeLog.include(DatabaseChangeLog.java:565)
	at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:348)
	... 30 common frames omitted
Caused by: org.xml.sax.SAXParseException: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '301 Moved Permanently'.
1 Like

Hey @Alexis1 - welcome to the Liquibase Community!

It looks like you’re attempting to validate your XML file as an XSD file.

You should be able to resolve it by changing the way you’re invoking your validating parser so that you’re validating your XML file against your XSD.

See How to link XML to XSD using schemaLocation or noNamespaceSchemaLocation?

You also have some other problems with your XSD itself. See collapsar’s answer on StackOverflow for help there.

Kindly,
Tabby