我正在使用Magnolia 5.3.4和Blossom 3.0.3但是在我的应用程序配置中无法解决此错误,不知道为什么我会收到此错误以及为什么无法达到此错误。任何人都会遇到这个问题并知道如何解决这个问题?
Multiple annotations found at this line:
- schema_reference.4: Failed to read schema document 'http://www.magnolia-cms.com/schema/
blossom.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>.
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element
'blossom:configuration'.
应用程序配置
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:blossom="http://www.magnolia-cms.com/schema/blossom"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.2.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.magnolia-cms.com/schema/blossom
http://www.magnolia-cms.com/schema/blossom.xsd" >
<tx:annotation-driven />
<context:annotation-config />
<blossom:configuration />
</beans>
答案 0 :(得分:2)
XSD之前在网站上,但最近必须在更新/迁移中丢失。在Magnolia的JIRA中创建了一张票,以便将它们添加回来。门票是内部的,所以我不能指向你。
但是,与此同时,作为解决方法,您可以在IDE中禁用XML验证或手动配置备用位置。例如,在Eclipse中,将在Preferences-&gt; XML-&gt; XML Catalog下选择User Specified Entries,然后选择Add按钮。您可以在Blossom模块中找到XSD文件的副本。