Surya
Surya

Reputation: 236

Getting Unexpected element '{urn:infinispan:config:7.0}infinispan' encountered

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>

enter code here

Upvotes: 2

Views: 1776

Answers (1)

Surya
Surya

Reputation: 236

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.

Upvotes: 1

Related Questions