question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to read schema document 'dbchangelog-3.8.xsd', because 'file' access is not allowed due to restriction set by the accessExternalSchema property

See original GitHub issue

Hi I have faced an issue with reading local schema file in liquibase version 4.8 and 4.9

Liquibase Version: 4.9.0
Liquibase Community 4.9.0 by Liquibase

Unexpected error running Liquibase: Error parsing line 3 column 55 of ./db.changelog.xml: schema_reference: Failed to read schema document 'dbchangelog-3.8.xsd', because 'file' access is not allowed due to restriction set by the accessExternalSchema property.

For more information, please use the --log-level flag 

We store schema file locally (XMLSchema\dbchangelog-3.8.xsd) to be able run liquibase “update” without internet access and in change log we reference to this location Here is example of changeLog

<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 XMLSchema/dbchangelog-3.8.xsd"
    logicalFilePath="db.changelog.xml">
	
    <include file="changelog_db.xml" relativeToChangelogFile="true"/>

</databaseChangeLog>

There is no such issue in version 4.7.1. Could you have a look?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
giancarloromeocommented, May 11, 2022

Is there a way to disable it programmatically? (Java)

1reaction
kataggartcommented, Jun 15, 2022

Since this issue is closed, we are no longer actively monitoring it. I opened a thread on the forum so community folks can help you all out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to read schema document 'xjc.xsd', because 'file ...
because 'file' access is not allowed due to restriction set by the accessExternalSchema property. Here is the full the error I am getting:...
Read more >
WebService Client Generation Error with JDK8 - Stack Overflow
... Failed to read schema document 'xjc.xsd', because 'bundle' access is not allowed due to restriction set by the accessExternalSchema property.
Read more >
wsimport fails with JDK 8: Failed to read schema document ...
wsimport fails with JDK 8: Failed to read schema document 'xjc.xsd', because 'file' access is not allowed due to restriction set by the...
Read more >
'file' access is not allowed due to restriction set by the ...
Exception : schema document 'ClinicalShipment.xsd', because 'file' access is not allowed due to restriction set by the accessExternalSchema property.
Read more >
JDK 8 Failed to read schema document 'xjc.xsd', because 'file ...
xsd ', because 'file' access is not allowed due to restriction set by the accessExternalSchema property. The error msg is: java.lang.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found