我有我的cache.xml如下:的GemFire局部区域创建
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gfe="http://www.springframework.org/schema/gemfire"
xmlns:p="http://www.springframework.org/schema/p" xmlns:util="http://www.springframework.org/schema/util"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:cache="http://www.springframework.org/schema/cache"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/gemfire http://www.springframework.org/schema/gemfire/spring-gemfire-1.2.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
<cache:annotation-driven />
<context:property-placeholder location="classpath:test-cache.properties"
system-properties-mode="OVERRIDE" />
<util:properties id="gemfireProperties">
<prop key="mcast-port">0</prop>
<prop key="log-level">info</prop>
<prop key="license-data-management">${license-data-management}</prop>
</util:properties>
<gfe:cache properties-ref="gemfireProperties" id="gemfireCache" />
<gfe:local-region id="pet-region">
<gfe:cache-listener>
<bean
class="com.mycompany.cache.TestLoggingCacheListener" />
</gfe:cache-listener>
</gfe:local-region>
我看到一个异常,如下
schema_reference.4:无法读取模式文档 “ http://www.springframework.org/schema/gemfire/spring-gemfire-1.2.xsd', 因为1)找不到文档; 2)文件不能被 读取; 3)文档的根元素不是。
cvc-complex-type.2.4.c:匹配通配符是严格的,但是对于元素'gfe:cache'没有找到 声明。
我试着换成不同版本的xsd's,但没有运气我仍然看到问题。
http://www.springframework.org/schema/gemfire/spring-gemfire.xsd
和
http://www.springframework.org/schema/gemfire/spring-gemfire-1.1.xsd
和
http://www.springframework.org/schema/gemfire/spring-gemfire-1.2.xsd
上述所有尝试后,当我换到1.1版本,我把它抛出另一个问题,现在
CVC-复杂type.2.4.c:匹配通配符是严格的,但没有可以为元素'gfe:local-region'找到 声明。
任何人都可以帮我解决这个问题吗?