0 Replies Latest reply on Jan 19, 2015 5:02 AM by John Doe

    Migrating Infinispan xml configuration from 6.x to 7.x

    John Doe Newbie

      I've been using Infinispan 6.x and I have a could of XML configuration files. Now I want to migrate to 7.x however i'm having exceptions when the new version tries to parse the old configuration files. Here is my configuration file:

      <?xml version="1.0" encoding="UTF-8"?>
      <infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:schemaLocation="urn:infinispan:config:6.0 http://www.infinispan.org/schemas/infinispan-config-6.0.xsd">
        <global>
          <globalJmxStatistics enabled="false" mBeanServerLookup="dz.lab.cache.infinispan.DummyMBeanServer$DummyLoockup" />
        </global>
        <default>    
          <eviction strategy="NONE" />
          <expiration lifespan="-1" maxIdle="-1" />
          <clustering mode="local">
            <hash>
              <groups enabled="true" />
            </hash>
          </clustering>
          <transaction transactionManagerLookupClass="org.infinispan.transaction.lookup.JBossStandaloneJTAManagerLookup" transactionMode="TRANSACTIONAL" lockingMode="OPTIMISTIC" />
          <invocationBatching enabled="true" />
          <locking supportsConcurrentUpdates="true" />    
        </default>
      </infinispan>
      

       

      and the full stacktrace:

      org.infinispan.commons.CacheConfigurationException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[7,11]
      Message: Unexpected element 'global' encountered
          at org.infinispan.configuration.parsing.ParseUtils.unexpectedElement(ParseUtils.java:35)
          at org.infinispan.configuration.parsing.Parser70.readElement(Parser70.java:96)
          at org.infinispan.configuration.parsing.ParserRegistry.parseElement(ParserRegistry.java:133)
          at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:115)
          at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:102)
          at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:89)
          ... 30 more
      

      How I could migrate this configuration? cannot find hints on the official user guide!