【问题标题】:Liquigraph schema files missing?Liquigraph 模式文件丢失?
【发布时间】:2021-08-02 21:59:55
【问题描述】:

我们的站点中有一项服务使用 neo4j 作为数据库。今天,当我尝试加载开发服务时,项目爆炸了。我收到这样的错误:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquigraph' defined in class path resource [org/liquigraph/spring/starter/LiquigraphAutoConfiguration$LiquigraphConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: 
cvc-elt.1: Cannot find the declaration of element 'changelog'.

还有这个:

2021-08-02 14:43:41.516  WARN 9650 --- [  restartedMain] o.l.core.io.xml.ChangelogParser          : XSD validation warning : schema_reference.4: Failed to read schema document 'http://www.liquigraph.org/schema/1.0/liquigraph.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

在我的终端中。

我去了site listed in the error,但它不起作用。还有 this one 非常相似,但给出了 404。

我们的 pom.xml 文件为 liquigraph 列出了这个:

<!-- https://mvnrepository.com/artifact/org.liquigraph/liquigraph-spring-boot-starter -->
<dependency>
    <groupId>org.liquigraph</groupId>
    <artifactId>liquigraph-spring-boot-starter</artifactId>
    <version>3.0.3</version>
</dependency>

在研究这个项目时,我看到了一些关于“离线”运行它的东西。如何在缺少 XSD 文件的情况下加载项目?

【问题讨论】:

  • 我的错,我在部署新网站时搞砸了,现在将修复它。

标签: neo4j xsd liquigraph


【解决方案1】:

这应该现在修复。 我刚刚部署了一个新版本的网站并错误配置了一些东西(错误的CNAME 文件位置,错误的架构文件位置)。

https://www.liquigraph.org/schema/1.0/liquigraph.xsdhttp://www.liquigraph.org/schema/1.0/liquigraph.xsd 现在应该可以正常工作了。

最近发布的 Liquigraph 还支持架构位置重定向,例如最新的 3.x 和 4.x。确保升级!

【讨论】:

  • 太棒了。谢谢你。我现在收到一个关于“元素类型“hr”必须由匹配的结束标记“”终止的新错误。自上次以来我们的网站没有任何代码更改工作,所以我想知道这是否与 XSD 文件有关?
  • 哦,阅读错误我发现这可能解释了它:2021-08-03 08:02:05.631 ERROR 16101 --- [restartedMain] o.l.core.io.xml.ChangelogParser : XSD验证错误:s4s-elt-character:除“xs:appinfo”和“xs:documentation”之外的架构元素中不允许使用非空白字符。看到“301 永久移动”。
  • 您使用的是什么版本的 Liquigraph?一段时间以来,我们已经有了重定向感知 XML 模式解析器。无论如何,要永久避免该问题,最好使用 https:// URL 而不是 http://。但最近足够多的 Liquigraph 版本应该支持重定向。
  • 查看我在上面发布的 maven 配置,我应该使用 3.0.3 对吗?我最初没有设置项目,所以也许我没有知道我需要更新的一些配置。
  • 从 3.0.3 更新到 3.1.2 解决了这个问题。谢谢!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-10-23
  • 2014-09-27
  • 2013-01-08
  • 2010-09-10
  • 2015-12-19
相关资源
最近更新 更多