遇到意外元素'{urn:infinispan:config:7.0} infinispan' [英] Getting Unexpected element '{urn:infinispan:config:7.0}infinispan' encountered

查看:199
本文介绍了遇到意外元素'{urn:infinispan:config:7.0} infinispan'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下infinispan xml并获得解析异常。
javax.xml.stream.XMLStreamException:[row,col]处的ParseError:[3,36]
消息:遇到意外元素'{urn:infinispan:config:7.0} infinispan'

I have the following infinispan xml and getting the parse exception. javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,36] Message: Unexpected element '{urn:infinispan:config:7.0}infinispan' encountered

关于我为什么会收到此错误的任何想法?

Any ideas on why I am getting this error?

<infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:7.0 http://www.infinispan.org/schemas/infinispan-config-7.0.xsd"
xmlns="urn:infinispan:config:7.0">
<jgroups>
  <stack-file name="tcp" path="jgroups-tcp.xml"/>
</jgroups>

<cache-container name="SampleCacheManager" statistics="true" default-cache="the-default-cache" shutdown-hook="DEFAULT">
    <transport stack="tcp" cluster="infinispan-cluster" node-name="Node-A" machine="m1" rack="r1" site="LON" />

    <distributed-cache name="authCache" l1-lifespan="1800000" owners="2" mode="SYNC"  >
        <eviction max-entries="5000" strategy="FIFO" />
        <expiration interval="500"  max-idle="1800000" />
        <persistence passivation="false">

            <file-store path="/opt/UAT_01/cacheStore/" shared="false" preload="true" purge="true">

                <write-behind flush-lock-timeout="5000" modification-queue-size="200" shutdown-timeout="1000" thread-pool-size="15" />
             </file-store>
        </persistence>
    </distributed-cache>

</cache-container>

在此输入代码

推荐答案

事实证明我在我的lib路径中使用了旧罐子infinispan。在运行时,它在层次结构中更高,并且它首先被拾取。清理后,它开始像魅力一样工作。

So turns out I was having old jars of infinispan in my lib path. During run time it was higher in the hierarchy and it was getting picked up first. After cleaning it up, it started working like a charm.

这篇关于遇到意外元素'{urn:infinispan:config:7.0} infinispan'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆